mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
1997c2ef26
commit
2f2f23894e
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue