From: Martin Schwenke Date: Tue, 15 Feb 2022 21:56:10 +0000 (+1100) Subject: source4/torture: Drop unused variable tdif X-Git-Tag: tevent-0.12.0~690 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ccb187408b3055210c4bb19f1e21eb0438eb2ff;p=thirdparty%2Fsamba.git source4/torture: Drop unused variable tdif clang complains: ../../source4/torture/basic/denytest.c:1805:11: error: variable 'tdif' set but not used [-Werror,-Wunused-but-set-variable] int64_t tdif; ^ That is, the variable is initialised and updated but the value is never used. Perhaps it is meant to be used in the nearby torture_comment() call, but it has been this was since commit cb1cff90f165d82cbbf1dd87e475a1b13984d45e from 2004. Just drop it. Signed-off-by: Martin Schwenke Reviewed-by: Volker Lendecke --- diff --git a/source4/torture/basic/denytest.c b/source4/torture/basic/denytest.c index 8e7a822df09..9725676f3de 100644 --- a/source4/torture/basic/denytest.c +++ b/source4/torture/basic/denytest.c @@ -1802,7 +1802,6 @@ static bool torture_ntdenytest(struct torture_context *tctx, for (i=0;i