[libcxx] r295560 - test: silence warnings on clang under clang-cl
Saleem Abdulrasool via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 18 11:28:41 PST 2017
Author: compnerd
Date: Sat Feb 18 13:28:41 2017
New Revision: 295560
URL: http://llvm.org/viewvc/llvm-project?rev=295560&view=rev
Log:
test: silence warnings on clang under clang-cl
When running under clang-cl mode, we do not define `__GNUC__`, resulting
in the test failing.
Modified:
libcxx/trunk/test/std/depr/depr.c.headers/stdio_h.pass.cpp
Modified: libcxx/trunk/test/std/depr/depr.c.headers/stdio_h.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/depr/depr.c.headers/stdio_h.pass.cpp?rev=295560&r1=295559&r2=295560&view=diff
==============================================================================
--- libcxx/trunk/test/std/depr/depr.c.headers/stdio_h.pass.cpp (original)
+++ libcxx/trunk/test/std/depr/depr.c.headers/stdio_h.pass.cpp Sat Feb 18 13:28:41 2017
@@ -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
More information about the cfe-commits
mailing list