aboutsummaryrefslogtreecommitdiff
path: root/readline
diff options
context:
space:
mode:
authorChen Gang <gang.chen.5i5j@gmail.com>2014-09-20 11:50:14 +0800
committerJoel Brobecker <brobecker@adacore.com>2014-09-22 09:52:06 -0400
commit20b23ee6c89b3c412f78017d777ca2d3d2937431 (patch)
tree78f9f7b3dcb903d9f8161954bb731074c82679a1 /readline
parent342cc09114e3925c31de80910420f3b809f3923b (diff)
downloadgdb-20b23ee6c89b3c412f78017d777ca2d3d2937431.zip
gdb-20b23ee6c89b3c412f78017d777ca2d3d2937431.tar.gz
gdb-20b23ee6c89b3c412f78017d777ca2d3d2937431.tar.bz2
readline/search.c: Remove useless parameter '0' for rl_message()
The related warning under Darwin x86_64: gcc -c -DHAVE_CONFIG_H -I. -I../../binutils-gdb/readline -DRL_LIBRARY_VERSION='"6.2"' -g -O2 ../../binutils-gdb/readline/search.c ../../binutils-gdb/readline/search.c:213:24: warning: data argument not used by format string [-Wformat-extra-args] rl_message ("%s", p, 0); ~~~~ ^ 1 warning generated. readline/ChangeLog.gdb: * search.c (_rl_nsearch_init): Remove useless parameter '0' for rl_message(). Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Diffstat (limited to 'readline')
-rw-r--r--readline/ChangeLog.gdb6
-rw-r--r--readline/search.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/readline/ChangeLog.gdb b/readline/ChangeLog.gdb
index 1218fd7..bd082e0 100644
--- a/readline/ChangeLog.gdb
+++ b/readline/ChangeLog.gdb
@@ -1,3 +1,9 @@
+2014-09-22 Chen Gang <gang.chen.5i5j@gmail.com>
+
+ Pushed by Joel Brobecker <brobecker@adacore.com>
+ * search.c (_rl_nsearch_init): Remove useless parameter '0' for
+ rl_message().
+
2013-09-24 Pierre Muller <muller@sourceware.org>
* readline.c (bind_arrow_keys_internal):
diff --git a/readline/search.c b/readline/search.c
index 04468fc..bf525e6 100644
--- a/readline/search.c
+++ b/readline/search.c
@@ -210,7 +210,7 @@ _rl_nsearch_init (dir, pchar)
rl_end = rl_point = 0;
p = _rl_make_prompt_for_search (pchar ? pchar : ':');
- rl_message ("%s", p, 0);
+ rl_message ("%s", p);
xfree (p);
RL_SETSTATE(RL_STATE_NSEARCH);