From: Martin Schwenke Date: Thu, 23 May 2019 07:53:19 +0000 (+1000) Subject: ctdb-common: Avoid unused value warning X-Git-Tag: samba-4.11.0rc1~593 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=887dc174f2320de2318d8bd56f1b58c95c10519e;p=samba.git ctdb-common: Avoid unused value warning The incremented value of argc is indeed never used. Leave it as a comment to warn anyone cutting and pasting the code. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/common/run_event.c b/ctdb/common/run_event.c index 3682f778768..ca4e572a806 100644 --- a/ctdb/common/run_event.c +++ b/ctdb/common/run_event.c @@ -146,7 +146,7 @@ static int script_args(TALLOC_CTX *mem_ctx, const char *event_str, } argv[argc] = NULL; - argc += 1; + /* argc += 1 */ *out = argv; return 0;