Fix clang

This commit is contained in:
Peter Dimov
2021-10-18 00:37:46 +03:00
parent cfbc94b128
commit 4ff953b568

View File

@@ -4,16 +4,17 @@
#include <boost/config/pragma_message.hpp> #include <boost/config/pragma_message.hpp>
#if defined(__clang__) #if defined(__GNUC__) && !defined(__clang__) && __cplusplus < 201100L
# pragma clang diagnostic ignored "-Wlong-long"
#elif defined(__GNUC__) && __cplusplus < 201100L
BOOST_PRAGMA_MESSAGE("Skipping test under GCC in C++98 mode") BOOST_PRAGMA_MESSAGE("Skipping test under GCC in C++98 mode")
int main() {} int main() {}
#else #else
#if defined(__clang__)
# pragma clang diagnostic ignored "-Wlong-long"
#endif
#include <boost/container_hash/hash.hpp> #include <boost/container_hash/hash.hpp>
#include <boost/core/lightweight_test.hpp> #include <boost/core/lightweight_test.hpp>
#include <string> #include <string>