From 2f2f23894e3a7116d0fd0962e4ac9ecebceaab16 Mon Sep 17 00:00:00 2001 From: Sean Bruno Date: Mon, 4 Nov 2013 16:52:27 +0000 Subject: [PATCH] Quiesce warning about unused argument in call to rl_message() by wrapping this call with the same #if defined (PREFER_STDARG) directive as in display.c Using -E to compile display.c/search.c shows that this is the code chosen by the build when we create libreadline --- contrib/libreadline/search.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/libreadline/search.c b/contrib/libreadline/search.c index 33cc4fc1e736..dd8ae13e139c 100644 --- a/contrib/libreadline/search.c +++ b/contrib/libreadline/search.c @@ -211,7 +211,11 @@ _rl_nsearch_init (dir, pchar) rl_end = rl_point = 0; p = _rl_make_prompt_for_search (pchar ? pchar : ':'); +#if defined (PREFER_STDARG) + rl_message ("%s", p); +#else rl_message ("%s", p, 0); +#endif free (p); RL_SETSTATE(RL_STATE_NSEARCH);