diff options
Diffstat (limited to 'libcxx/test/std/depr')
-rw-r--r-- | libcxx/test/std/depr/depr.c.headers/stdio_h.pass.cpp | 2 | ||||
-rw-r--r-- | libcxx/test/std/depr/depr.c.headers/wchar_h.pass.cpp | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libcxx/test/std/depr/depr.c.headers/stdio_h.pass.cpp b/libcxx/test/std/depr/depr.c.headers/stdio_h.pass.cpp index 3c5dd0ebf0e..0ea105dd3d3 100644 --- a/libcxx/test/std/depr/depr.c.headers/stdio_h.pass.cpp +++ b/libcxx/test/std/depr/depr.c.headers/stdio_h.pass.cpp @@ -99,8 +99,10 @@ #include <cstdarg> +#if defined(__GNUC__) #pragma GCC diagnostic ignored "-Wformat-zero-length" #pragma GCC diagnostic ignored "-Wdeprecated-declarations" // for tmpnam +#endif int main() { diff --git a/libcxx/test/std/depr/depr.c.headers/wchar_h.pass.cpp b/libcxx/test/std/depr/depr.c.headers/wchar_h.pass.cpp index 97671d4e01b..6bd2b2d3098 100644 --- a/libcxx/test/std/depr/depr.c.headers/wchar_h.pass.cpp +++ b/libcxx/test/std/depr/depr.c.headers/wchar_h.pass.cpp @@ -34,10 +34,14 @@ int main() // a complete object type other than an array type that can hold the conversion // state information necessary to convert between sequences of multibyte // characters and wide characters +#if defined(__clang__) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wmissing-braces" +#endif mbstate_t mb = {0}; +#if defined(__clang__) #pragma clang diagnostic pop +#endif size_t s = 0; tm *tm = 0; |