From 0955b610bd94347512b688cee851703f7ad8bdb1 Mon Sep 17 00:00:00 2001 From: Andreas Buhr Date: Tue, 16 Feb 2021 13:26:51 +0100 Subject: Fix warning about unused variable I get a warning about the variable t_var being set but not used. This patch fixes the warning. Change-Id: Ib2df5ed2dddd283eb87f71a8b85951d1f67f04f2 Reviewed-by: Thiago Macieira --- tests/auto/corelib/global/qglobal/qglobal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/corelib/global/qglobal/qglobal.c b/tests/auto/corelib/global/qglobal/qglobal.c index 2f59119292..b577a6f71f 100644 --- a/tests/auto/corelib/global/qglobal/qglobal.c +++ b/tests/auto/corelib/global/qglobal/qglobal.c @@ -118,6 +118,7 @@ void thread_local_test() { static thread_local int t_var; t_var = gt_var; + Q_UNUSED(t_var); } #endif -- cgit v1.2.3