Merge pull request #388 from biojppm/fix/clang_compile_error

Fix compile error in clang<10: fails on pragma -Wc++20-extensions
This commit is contained in:
Daniel Lemire 2026-06-08 15:28:45 -04:00 committed by GitHub
commit c05156ff60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -358,7 +358,9 @@ from_chars_float_advanced(UC const *first, UC const *last, T &value,
// This is unfortunate.
#ifdef __clang__
#pragma clang diagnostic push
#if (!defined(__APPLE_CC__) && __clang_major__ >= 10) || (__clang_major__ >= 13)
#pragma clang diagnostic ignored "-Wc++20-extensions"
#endif
#endif
if fastfloat_unlikely (pns.too_many_digits) {
return parse_number_slow_path<T, UC>(first, last, value, options, bjf);