From e8d9bb906b777678c56ee80a4b51ef84ebbdc96d Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 12 Nov 2015 17:28:18 -0800 Subject: [PATCH] tst_compiler: Silence MSVC 2015 warning about unused variable tst_compiler.cpp(639): warning C4101: 'c': unreferenced local variable Change-Id: If0101953ceb66bc8e8f5ab969d54f4e1c25dd414 Reviewed-by: Friedemann Kleint --- tests/auto/other/compiler/tst_compiler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/other/compiler/tst_compiler.cpp b/tests/auto/other/compiler/tst_compiler.cpp index 5ef247483de..2c95002cb23 100644 --- a/tests/auto/other/compiler/tst_compiler.cpp +++ b/tests/auto/other/compiler/tst_compiler.cpp @@ -637,6 +637,7 @@ void tst_Compiler::cxx11_alignas() QSKIP("Compiler does not support C++11 feature"); #else alignas(double) char c; + Q_UNUSED(c); QCOMPARE(Q_ALIGNOF(c), Q_ALIGNOF(double)); #endif }