diff options
| author | Eric Fiselier <eric@efcs.ca> | 2016-04-28 01:49:03 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2016-04-28 01:49:03 +0000 |
| commit | e5eb7049eb45f960dd7927e037a637a175d3f6db (patch) | |
| tree | 411bac5f89419725ec6adc92d9d6ef7845d08e28 /libcxx/test/support | |
| parent | 15643352ebec4e44ec03ab02491986f15acf132a (diff) | |
| download | bcm5719-llvm-e5eb7049eb45f960dd7927e037a637a175d3f6db.tar.gz bcm5719-llvm-e5eb7049eb45f960dd7927e037a637a175d3f6db.zip | |
Guard Clang and GCC specific pragmas. Patch from STL@microsoft.com
llvm-svn: 267836
Diffstat (limited to 'libcxx/test/support')
| -rw-r--r-- | libcxx/test/support/disable_missing_braces_warning.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/test/support/disable_missing_braces_warning.h b/libcxx/test/support/disable_missing_braces_warning.h index 97fd8a89a51..c53eef8a951 100644 --- a/libcxx/test/support/disable_missing_braces_warning.h +++ b/libcxx/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 |

