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>
bb10
Thiago Macieira 2022-11-21 08:52:26 -08:00
parent 23555d9ac4
commit 9d0c29b882
1 changed files with 0 additions and 7 deletions

View File

@ -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__))