From 9d0c29b882f1ab12e978ec8c9fc8bed09b318fb1 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 21 Nov 2022 08:52:26 -0800 Subject: [PATCH] QString: remove the GCC 7 + ASan warning GCC 7 is not supported in Qt 6, and I really don't expect anyone would be using it in 2023 with ASan anyway. Change-Id: I76216ced393445a4ae2dfffd1729a7b82a8776cc Reviewed-by: Marc Mutz --- src/corelib/text/qstring.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp index cb51b6eeec..43041b7690 100644 --- a/src/corelib/text/qstring.cpp +++ b/src/corelib/text/qstring.cpp @@ -510,13 +510,6 @@ static bool simdTestMask(const char *&ptr, const char *end, quint32 maskval) #endif #ifdef Q_CC_GNU -# if defined(__SANITIZE_ADDRESS__) && Q_CC_GNU < 800 && !defined(Q_CC_CLANG) -# warning "The __attribute__ on below will likely cause a build failure with your GCC version. Your choices are:" -# warning "1) disable ASan;" -# warning "2) disable the optimized code in qustrlen (change __SSE2__ to anything else);" -# warning "3) upgrade your compiler (preferred)." -# endif - // We may overrun the buffer, but that's a false positive: // this won't crash nor produce incorrect results __attribute__((__no_sanitize_address__))