From: Noel Power Date: Fri, 14 Jun 2019 13:49:47 +0000 (+0000) Subject: librpc/ndr: clang: Fix warning 'Value stored to 'towernum' is never read' X-Git-Tag: ldb-2.0.5~188 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c586845665b779a698fad98dede42c214cfbff4;p=thirdparty%2Fsamba.git librpc/ndr: clang: Fix warning 'Value stored to 'towernum' is never read' Fixes: librpc/ndr/ndr_orpc.c:140:2: warning: Value stored to 'towernum' is never read <--[clang] towernum = 0; ^ ~ 1 warning generated. Signed-off-by: Noel Power Reviewed-by: Gary Lockyer --- diff --git a/librpc/ndr/ndr_orpc.c b/librpc/ndr/ndr_orpc.c index 936a56b5e65..f24ddc5f826 100644 --- a/librpc/ndr/ndr_orpc.c +++ b/librpc/ndr/ndr_orpc.c @@ -137,7 +137,6 @@ enum ndr_err_code ndr_pull_STRINGARRAY(struct ndr_pull *ndr, int ndr_flags, stru } while (towerid != 0); ar->stringbindings[towernum] = NULL; - towernum = 0; return NDR_ERR_SUCCESS; }