From: Andreas Schneider Date: Fri, 3 Feb 2023 19:32:54 +0000 (+0100) Subject: s3:netapi: Remove unused variables X-Git-Tag: talloc-2.4.1~1689 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a94adedd0ef335b1ee037cc2e666a5b39d57d3bc;p=thirdparty%2Fsamba.git s3:netapi: Remove unused variables source3/lib/netapi/tests/netfile.c:40:22: error: variable 'i2' set but not used [-Werror,-Wunused-but-set-variable] struct FILE_INFO_2 *i2 = NULL; ^ source3/lib/netapi/tests/netfile.c:41:22: error: variable 'i3' set but not used [-Werror,-Wunused-but-set-variable] struct FILE_INFO_3 *i3 = NULL; ^ Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison --- diff --git a/source3/lib/netapi/tests/netfile.c b/source3/lib/netapi/tests/netfile.c index bee3c2ed5eb..87aff029320 100644 --- a/source3/lib/netapi/tests/netfile.c +++ b/source3/lib/netapi/tests/netfile.c @@ -37,9 +37,6 @@ static NET_API_STATUS test_netfileenum(const char *hostname, uint8_t *buffer = NULL; int i; - struct FILE_INFO_2 *i2 = NULL; - struct FILE_INFO_3 *i3 = NULL; - printf("testing NetFileEnum level %d\n", level); do { @@ -55,10 +52,8 @@ static NET_API_STATUS test_netfileenum(const char *hostname, if (status == 0 || status == ERROR_MORE_DATA) { switch (level) { case 2: - i2 = (struct FILE_INFO_2 *)buffer; break; case 3: - i3 = (struct FILE_INFO_3 *)buffer; break; default: return -1; @@ -76,10 +71,8 @@ static NET_API_STATUS test_netfileenum(const char *hostname, switch (level) { case 2: - i2++; break; case 3: - i3++; break; } }