From: Noel Power Date: Wed, 14 Aug 2019 11:21:32 +0000 (+0100) Subject: s3/libsmb: clang: Fix 'Value stored to 'ea_size' is never read' X-Git-Tag: tevent-0.10.1~132 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf567380a7cc69bf4dc4cf7bad6bc774fcef6085;p=thirdparty%2Fsamba.git s3/libsmb: clang: Fix 'Value stored to 'ea_size' is never read' 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 Reviewed-by: Gary Lockyer --- diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index 2e53b56e64b..987b04d0a66 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -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++ ) {