[libcxx] r180678 - Only use Clang pragma when compiling with clang.
Joerg Sonnenberger
joerg at bec.de
Sat Apr 27 12:10:15 PDT 2013
Author: joerg
Date: Sat Apr 27 14:10:15 2013
New Revision: 180678
URL: http://llvm.org/viewvc/llvm-project?rev=180678&view=rev
Log:
Only use Clang pragma when compiling with clang.
Modified:
libcxx/trunk/src/hash.cpp
Modified: libcxx/trunk/src/hash.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/hash.cpp?rev=180678&r1=180677&r2=180678&view=diff
==============================================================================
--- libcxx/trunk/src/hash.cpp (original)
+++ libcxx/trunk/src/hash.cpp Sat Apr 27 14:10:15 2013
@@ -12,7 +12,9 @@
#include "stdexcept"
#include "type_traits"
+#ifdef __clang__
#pragma clang diagnostic ignored "-Wtautological-constant-out-of-range-compare"
+#endif
_LIBCPP_BEGIN_NAMESPACE_STD
More information about the cfe-commits
mailing list