source4/torture: Drop unused variable attribute
authorMartin Schwenke <martin@meltin.net>
Tue, 15 Feb 2022 22:11:43 +0000 (09:11 +1100)
committerVolker Lendecke <vl@samba.org>
Thu, 17 Feb 2022 19:06:24 +0000 (19:06 +0000)
clang complains:

../../source4/client/client.c:1569:11: error: variable 'attribute' set but not used [-Werror,-Wunused-but-set-variable]
        uint16_t attribute = FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_HIDDEN;
                 ^

That is, the variable is initialised and updated but the value is
never used.

Commit 2f377d5101783ed4d8c96a46aaec61895cc7b6ad from 2004 dropped the
use of this variable.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Feb 17 19:06:25 UTC 2022 on sn-devel-184

source4/client/client.c

index c961965ec4c8a5aa12b79f66b030b070ddc08d20..71906825d1b7b9eef195c84c96f5cc8cd19f1264 100644 (file)
@@ -1566,10 +1566,6 @@ delete some files
 static int cmd_del(struct smbclient_context *ctx, const char **args)
 {
        char *mask;
-       uint16_t attribute = FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_HIDDEN;
-
-       if (ctx->recurse)
-               attribute |= FILE_ATTRIBUTE_DIRECTORY;
        
        if (!args[1]) {
                d_printf("del <filename>\n");