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/std/depr/depr.c.headers/stdio_h.pass.cpp | |
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/std/depr/depr.c.headers/stdio_h.pass.cpp')
-rw-r--r-- | libcxx/test/std/depr/depr.c.headers/stdio_h.pass.cpp | 2 |
1 files changed, 2 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() { |