Skip to content

Commit c05156f

Browse files
authored
Merge pull request #388 from biojppm/fix/clang_compile_error
Fix compile error in clang<10: fails on pragma -Wc++20-extensions
2 parents e0b53ea + 23e245f commit c05156f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/fast_float/parse_number.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,9 @@ from_chars_float_advanced(UC const *first, UC const *last, T &value,
358358
// This is unfortunate.
359359
#ifdef __clang__
360360
#pragma clang diagnostic push
361+
#if (!defined(__APPLE_CC__) && __clang_major__ >= 10) || (__clang_major__ >= 13)
361362
#pragma clang diagnostic ignored "-Wc++20-extensions"
363+
#endif
362364
#endif
363365
if fastfloat_unlikely (pns.too_many_digits) {
364366
return parse_number_slow_path<T, UC>(first, last, value, options, bjf);

0 commit comments

Comments
 (0)