summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2022-11-21 08:52:26 -0800
committerThiago Macieira <thiago.macieira@intel.com>2022-12-04 17:56:45 -0800
commit9d0c29b882f1ab12e978ec8c9fc8bed09b318fb1 (patch)
treec3afde29dbcc3246087d64ef802225d3c95f1682 /src/corelib
parent23555d9ac439ed846d312d4bdf33122f7b2ab01f (diff)
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 <marc.mutz@qt.io>
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/text/qstring.cpp7
1 files changed, 0 insertions, 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__))