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
This commit is contained in:
Sean Bruno 2013-11-04 16:52:27 +00:00
parent 1997c2ef26
commit 2f2f23894e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257642

View File

@ -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);