From 84ebee8c20ce667a5ec5fddc0aa47f8b5bef39f8 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 18 Oct 2011 10:30:42 +0530 Subject: build: warning suppression (round n) with this patch, there are no more warnings with gcc (GCC) 4.6.1 20110908 Change-Id: Ice0d52d304b9846395f8a4a191c98eb53125f792 BUG: 2550 Reviewed-on: http://review.gluster.com/607 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- cli/src/cli-rl.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cli') diff --git a/cli/src/cli-rl.c b/cli/src/cli-rl.c index 80b14620f..592da7baa 100644 --- a/cli/src/cli-rl.c +++ b/cli/src/cli-rl.c @@ -89,9 +89,14 @@ cli_rl_process_line (char *line) state->rl_processing = 1; { ret = cli_cmd_process_line (state, line); + if (ret) + gf_log (THIS->name, GF_LOG_WARNING, + "failed to process line"); + add_history (line); } state->rl_processing = 0; + } -- cgit