librpc/ndr: clang: Fix warning 'Value stored to 'towernum' is never read'
authorNoel Power <noel.power@suse.com>
Fri, 14 Jun 2019 13:49:47 +0000 (13:49 +0000)
committerNoel Power <npower@samba.org>
Wed, 26 Jun 2019 10:30:23 +0000 (10:30 +0000)
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 <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
librpc/ndr/ndr_orpc.c

index 936a56b5e65984009daad473432ecd38f4532815..f24ddc5f826d3a21ad314c029504ac2d177f5d9b 100644 (file)
@@ -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;
 }