summaryrefslogtreecommitdiff
path: root/test/support/disable_missing_braces_warning.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/support/disable_missing_braces_warning.h')
-rw-r--r--test/support/disable_missing_braces_warning.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/support/disable_missing_braces_warning.h b/test/support/disable_missing_braces_warning.h
index 97fd8a89a51a..c53eef8a951d 100644
--- a/test/support/disable_missing_braces_warning.h
+++ b/test/support/disable_missing_braces_warning.h
@@ -11,6 +11,8 @@
// std::array is explicitly allowed to be initialized with A a = { init-list };.
// Disable the missing braces warning for this reason.
+#if defined(__GNUC__)
#pragma GCC diagnostic ignored "-Wmissing-braces"
+#endif
#endif // SUPPORT_DISABLE_MISSING_BRACES_WARNING_H