From: Noel Power Date: Mon, 8 Jul 2019 15:19:51 +0000 (+0000) Subject: libcl/smb: clang: Fix 'Value stored to 'next_offset' is never read' X-Git-Tag: talloc-2.3.0~113 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa551bf0a4ae5a6687a1ee638dc3c495a30a2e19;p=thirdparty%2Fsamba.git libcl/smb: clang: Fix 'Value stored to 'next_offset' is never read' Fixes: libcli/smb/smb2_create_blob.c:146:3: warning: Value stored to 'next_offset' is never read <--[clang] next_offset += next_pad; ^ ~~~~~~~~ 1 warning generated. Signed-off-by: Noel Power Reviewed-by: Gary Lockyer --- diff --git a/libcli/smb/smb2_create_blob.c b/libcli/smb/smb2_create_blob.c index 457ed290fba..bb994f28e2f 100644 --- a/libcli/smb/smb2_create_blob.c +++ b/libcli/smb/smb2_create_blob.c @@ -143,7 +143,6 @@ static NTSTATUS smb2_create_blob_push_one(TALLOC_CTX *mem_ctx, DATA_BLOB *buffer memcpy(buffer->data+ofs+blob_offset, blob->data.data, blob->data.length); if (next_pad > 0) { memset(buffer->data+ofs+next_offset, 0, next_pad); - next_offset += next_pad; } return NT_STATUS_OK;