diff --git a/libcxx/src/hash.cpp b/libcxx/src/hash.cpp index 75e773a3a647..388ab2ebe175 100644 --- a/libcxx/src/hash.cpp +++ b/libcxx/src/hash.cpp @@ -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