diff --git a/src/c4/charconv.hpp b/src/c4/charconv.hpp index b1775c7..ffb6a61 100644 --- a/src/c4/charconv.hpp +++ b/src/c4/charconv.hpp @@ -159,10 +159,14 @@ #if defined(__clang__) #define C4_NO_UBSAN_IOVRFLW __attribute__((no_sanitize("signed-integer-overflow"))) #elif defined(__GNUC__) +#if __GNUC__ > 7 #define C4_NO_UBSAN_IOVRFLW __attribute__((no_sanitize("signed-integer-overflow"))) #else #define C4_NO_UBSAN_IOVRFLW #endif +#else +#define C4_NO_UBSAN_IOVRFLW +#endif namespace c4 {