aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Stenger <[email protected]>2025-07-03 11:03:13 +0200
committerChristian Stenger <[email protected]>2025-07-03 10:27:40 +0000
commit53311b59983fac82cda45e5f963ca1a9211e4ca6 (patch)
tree663d35a2a6a5a3380182a5b28d7f1189a5c6d1ee /tests
parent4cd016b4cb6dd4d276c3aaf9d26173c99585fae5 (diff)
Tests: Guard gcc pragmaHEADmaster
Avoids a warning with MSVC compiler. Change-Id: I428c024f707d90388f61d0b9ecb683193ef14b39 Reviewed-by: Marcus Tillmanns <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/devcontainer/tst_devcontainer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/devcontainer/tst_devcontainer.cpp b/tests/auto/devcontainer/tst_devcontainer.cpp
index 24ffe4dad07..f4be768bbdf 100644
--- a/tests/auto/devcontainer/tst_devcontainer.cpp
+++ b/tests/auto/devcontainer/tst_devcontainer.cpp
@@ -9,8 +9,10 @@
#include <QtTest>
+#ifdef __GNUC__
// We are making use of named initializers a lot here, and GCC complains if we do not initialize all fields.
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
+#endif
using namespace Utils;