]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/libsmb: clang: Fix 'Value stored to 'ea_size' is never read'
authorNoel Power <noel.power@suse.com>
Wed, 14 Aug 2019 11:21:32 +0000 (12:21 +0100)
committerGary Lockyer <gary@samba.org>
Tue, 27 Aug 2019 23:04:37 +0000 (23:04 +0000)
Fixes:

source3/libsmb/clifile.c:5290:2: warning: Value stored to 'ea_size' is never read <--[clang]
        ea_size = (size_t)IVAL(rdata,0);
        ^         ~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source3/libsmb/clifile.c

index 2e53b56e64b44765313e64de4a22ab1573569fcf..987b04d0a661f6c3a2e82164d01d4432ed016e84 100644 (file)
@@ -5287,7 +5287,6 @@ static bool parse_ea_blob(TALLOC_CTX *ctx, const uint8_t *rdata,
                return false;
        }
 
-       ea_size = (size_t)IVAL(rdata,0);
        p = rdata + 4;
 
        for (num_eas = 0; num_eas < *pnum_eas; num_eas++ ) {