diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-02-18 19:28:41 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-02-18 19:28:41 +0000 |
commit | 7556597a12efe4b654e48225d471995daf4d7bf6 (patch) | |
tree | e948065cdd82d7dec446c8c91954bcac49b8c163 /test/std/depr | |
parent | 1eab168286c3dc764db59bbbee3b74fdf2f2c8a6 (diff) | |
download | external_libcxx-7556597a12efe4b654e48225d471995daf4d7bf6.tar.gz external_libcxx-7556597a12efe4b654e48225d471995daf4d7bf6.tar.bz2 external_libcxx-7556597a12efe4b654e48225d471995daf4d7bf6.zip |
test: silence warnings on clang under clang-cl
When running under clang-cl mode, we do not define `__GNUC__`, resulting
in the test failing.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@295560 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/std/depr')
-rw-r--r-- | test/std/depr/depr.c.headers/stdio_h.pass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/std/depr/depr.c.headers/stdio_h.pass.cpp b/test/std/depr/depr.c.headers/stdio_h.pass.cpp index 85f9d2986..8670af6d4 100644 --- a/test/std/depr/depr.c.headers/stdio_h.pass.cpp +++ b/test/std/depr/depr.c.headers/stdio_h.pass.cpp @@ -99,7 +99,7 @@ #include <cstdarg> -#if defined(__GNUC__) +#if defined(__GNUC__) || defined(__clang__) #pragma GCC diagnostic ignored "-Wformat-zero-length" #pragma GCC diagnostic ignored "-Wdeprecated-declarations" // for tmpnam #endif |