Author: sbruno
Date: Mon Nov 4 16:52:27 2013
New Revision: 257642
URL: http://svnweb.freebsd.org/changeset/base/257642
Log:
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
Modified:
head/contrib/libreadline/search.c
Modified: head/contrib/libreadline/search.c
==============================================================================
--- head/contrib/libreadline/search.c Mon Nov 4 16:28:29 2013
(r257641)
+++ head/contrib/libreadline/search.c Mon Nov 4 16:52:27 2013
(r257642)
@@ -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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"