mirror of
https://github.com/boostorg/charconv.git
synced 2026-02-09 23:12:24 +00:00
Suppress Wconstant-conversion warning on Apple Clang
This commit is contained in:
@@ -74,6 +74,10 @@ constexpr unsigned char digit_from_char(char val) noexcept
|
||||
# pragma warning(disable: 4146) // unary minus operator applied to unsigned type, result still unsigned
|
||||
# pragma warning(disable: 4189) // 'is_negative': local variable is initialized but not referenced
|
||||
|
||||
#elif defined(__clang__) && defined(__APPLE__)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wconstant-conversion"
|
||||
|
||||
#elif defined(__GNUC__) && (__GNUC__ < 7)
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Woverflow"
|
||||
@@ -234,6 +238,8 @@ BOOST_CXX14_CONSTEXPR from_chars_result from_chars_integer_impl(const char* firs
|
||||
|
||||
#ifdef BOOST_MSVC
|
||||
# pragma warning(pop)
|
||||
#elif defined(__clang__) && defined(__APPLE__)
|
||||
# pragma clang diagnostic pop
|
||||
#elif defined(__GNUC__) && (__GNUC__ < 7)
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user