diff options
author | sbruno <sbruno@FreeBSD.org> | 2013-11-04 16:52:27 +0000 |
---|---|---|
committer | sbruno <sbruno@FreeBSD.org> | 2013-11-04 16:52:27 +0000 |
commit | bb17f1f5ca73cbf6aa2db8951b3a43f33b91c833 (patch) | |
tree | 8b174f674f00e2c9687390ab66890487806fd984 /contrib/libreadline | |
parent | 0b050e8ff3f5e7c98b52204fc6bb5ebf854af1b8 (diff) | |
download | FreeBSD-src-bb17f1f5ca73cbf6aa2db8951b3a43f33b91c833.zip FreeBSD-src-bb17f1f5ca73cbf6aa2db8951b3a43f33b91c833.tar.gz |
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
Diffstat (limited to 'contrib/libreadline')
-rw-r--r-- | contrib/libreadline/search.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/libreadline/search.c b/contrib/libreadline/search.c index 33cc4fc..dd8ae13 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); |