From: Martin Schwenke Date: Tue, 15 Feb 2022 22:11:43 +0000 (+1100) Subject: source4/torture: Drop unused variable attribute X-Git-Tag: tevent-0.12.0~688 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7c3213523d6eaf2f6945dfe48c83cea2df9ca0c;p=thirdparty%2Fsamba.git source4/torture: Drop unused variable attribute 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 Reviewed-by: Volker Lendecke Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Thu Feb 17 19:06:25 UTC 2022 on sn-devel-184 --- diff --git a/source4/client/client.c b/source4/client/client.c index c961965ec4c..71906825d1b 100644 --- a/source4/client/client.c +++ b/source4/client/client.c @@ -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 \n");