[libcxx] r272632 - Ignore depricated warnings from <ext/hash_map> and <ext/hash_set>

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 13 20:26:11 PDT 2016


Author: ericwf
Date: Mon Jun 13 22:26:11 2016
New Revision: 272632

URL: http://llvm.org/viewvc/llvm-project?rev=272632&view=rev
Log:
Ignore depricated warnings from <ext/hash_map> and <ext/hash_set>

Modified:
    libcxx/trunk/test/libcxx/containers/gnu_cxx/hash_map.pass.cpp
    libcxx/trunk/test/libcxx/containers/gnu_cxx/hash_set.pass.cpp

Modified: libcxx/trunk/test/libcxx/containers/gnu_cxx/hash_map.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/containers/gnu_cxx/hash_map.pass.cpp?rev=272632&r1=272631&r2=272632&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/containers/gnu_cxx/hash_map.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/containers/gnu_cxx/hash_map.pass.cpp Mon Jun 13 22:26:11 2016
@@ -7,6 +7,11 @@
 //
 //===----------------------------------------------------------------------===//
 
+// Prevent emission of the deprecated warning.
+#ifdef __clang__
+#pragma clang diagnostic ignored "-W#warnings"
+#endif
+
 #include <ext/hash_map>
 
 namespace __gnu_cxx {

Modified: libcxx/trunk/test/libcxx/containers/gnu_cxx/hash_set.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/containers/gnu_cxx/hash_set.pass.cpp?rev=272632&r1=272631&r2=272632&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/containers/gnu_cxx/hash_set.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/containers/gnu_cxx/hash_set.pass.cpp Mon Jun 13 22:26:11 2016
@@ -7,6 +7,11 @@
 //
 //===----------------------------------------------------------------------===//
 
+// Prevent emission of the deprecated warning.
+#ifdef __clang__
+#pragma clang diagnostic ignored "-W#warnings"
+#endif
+
 #include <ext/hash_set>
 
 namespace __gnu_cxx {




More information about the cfe-commits mailing list