[libcxx] r247704 - Suppress some warnings in the tests that snuck in. That 'tmpnam' is deprecated doesn't change the fact that we have to test it.

Marshall Clow via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 15 10:12:49 PDT 2015


Author: marshall
Date: Tue Sep 15 12:12:49 2015
New Revision: 247704

URL: http://llvm.org/viewvc/llvm-project?rev=247704&view=rev
Log:
Suppress some warnings in the tests that snuck in.  That 'tmpnam' is deprecated doesn't change the fact that we have to test it.

Modified:
    libcxx/trunk/test/std/input.output/file.streams/c.files/cstdio.pass.cpp
    libcxx/trunk/test/std/language.support/support.types/nullptr_t.pass.cpp

Modified: libcxx/trunk/test/std/input.output/file.streams/c.files/cstdio.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/input.output/file.streams/c.files/cstdio.pass.cpp?rev=247704&r1=247703&r2=247704&view=diff
==============================================================================
--- libcxx/trunk/test/std/input.output/file.streams/c.files/cstdio.pass.cpp (original)
+++ libcxx/trunk/test/std/input.output/file.streams/c.files/cstdio.pass.cpp Tue Sep 15 12:12:49 2015
@@ -80,6 +80,7 @@
 
 #pragma clang diagnostic push
 #pragma clang diagnostic ignored "-Wformat-zero-length"
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
 
 int main()
 {

Modified: libcxx/trunk/test/std/language.support/support.types/nullptr_t.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/language.support/support.types/nullptr_t.pass.cpp?rev=247704&r1=247703&r2=247704&view=diff
==============================================================================
--- libcxx/trunk/test/std/language.support/support.types/nullptr_t.pass.cpp (original)
+++ libcxx/trunk/test/std/language.support/support.types/nullptr_t.pass.cpp Tue Sep 15 12:12:49 2015
@@ -54,7 +54,7 @@ void test_comparisons()
 
 #if defined(__clang__)
 #pragma clang diagnostic push
-#pragma diagnostic ignored "-Wnull-conversion"
+#pragma clang diagnostic ignored "-Wnull-conversion"
 #endif
 void test_nullptr_conversions() {
     {




More information about the cfe-commits mailing list