summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Buhr <andreas.buhr@qt.io>2021-02-16 13:26:51 +0100
committerAndreas Buhr <andreas.buhr@qt.io>2021-02-18 11:25:01 +0100
commit0955b610bd94347512b688cee851703f7ad8bdb1 (patch)
treeb8fe57a4ed5bff65b89a0addd5daa7304040a19f /tests
parent563dc357fbe63f90552323bcc705e6cff4c9bd51 (diff)
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 <thiago.macieira@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/global/qglobal/qglobal.c1
1 files changed, 1 insertions, 0 deletions
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