]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/lib: clang: Fix 'Value stored during its initialization is never read'
authorNoel Power <noel.power@suse.com>
Wed, 10 Jul 2019 14:49:11 +0000 (15:49 +0100)
committerGary Lockyer <gary@samba.org>
Tue, 16 Jul 2019 22:52:24 +0000 (22:52 +0000)
Fixes:

source3/lib/messages.c:483:11: warning: Value stored to 'status' during its initialization is never read <--[clang]
        NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
                 ^~~~~~   ~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source3/lib/messages.c

index 699282cff8849aec2a16a0a5650c7570e98bf2e6..a6bf99578b6f35a739b52935b5f44e1eb1ccbf40 100644 (file)
@@ -480,7 +480,7 @@ static NTSTATUS messaging_init_internal(TALLOC_CTX *mem_ctx,
 {
        TALLOC_CTX *frame;
        struct messaging_context *ctx;
-       NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
+       NTSTATUS status;
        int ret;
        const char *lck_path;
        const char *priv_path;