qt5base-lts/tests/auto/corelib
Marc Mutz 51c75ae2ff tst_qxp_is_virtual_base_of: disable all warnings for GCC < 10
The -Winaccessible-base switch was added for GCC 10. Older GCCs had no
way to suppress the warnings, and the existing suppression of
-Winaccessible-base caused a warning of its own:

  qcompilerdetection.h:1125:49: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas]
   1125 | #define QT_DO_PRAGMA(text)                      _Pragma(#text)
        |                                                 ^~~~~~~
  qcompilerdetection.h:1150:49: note: in expansion of macro ‘QT_DO_PRAGMA’
   1150 | #  define QT_WARNING_DISABLE_GCC(text)          QT_DO_PRAGMA(GCC diagnostic ignored text)
        |                                                 ^~~~~~~~~~~~
  tst_is_virtual_base_of.cpp:53:1: note: in expansion of macro ‘QT_WARNING_DISABLE_GCC’
     53 | QT_WARNING_DISABLE_GCC("-Winaccessible-base")
        | ^~~~~~~~~~~~~~~~~~~~~~

Since GCC 8 and 9 are slowly fading away as supported compilers, the
simplest fix to get a clean build is to suppress all warnings for the
test on these compilers, by passing -w, as suggested by
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90449.

Short of moving the affected code into a separate header file and
applying `#pragma GCC system_header` to it, there appears to be no
other way to get rid of the warning.

Amends a1bdee4697.

Change-Id: I12eb1f8d486b1e2413675991659bf9ad3a7869ae
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
2023-11-13 18:42:01 +00:00
..
animation QSequentialAnimationGroup: extend bindable property unit tests 2023-09-03 18:20:21 +02:00
global tst_qxp_is_virtual_base_of: disable all warnings for GCC < 10 2023-11-13 18:42:01 +00:00
io tests: skip setPermissions test if running as root 2023-11-03 11:00:11 +02:00
ipc QSharedMemory: fix attach() -> create() for non-legacy SystemV mode 2023-11-08 15:56:54 +01:00
itemmodels Q(Persistent)ModelIndex: use new test framework for op== 2023-11-13 17:35:54 +02:00
kernel JNI: allow QString as a parameter to native methods 2023-11-07 01:59:51 +08:00
mimetypes QMimeDatabase: update freedesktop.org.xml to shared-mime-info 2.3 2023-11-07 16:04:03 +01:00
platform Android: don't call delegates outside of the Activity 2023-11-10 21:57:11 +02:00
plugin tst_QFactoryLoader: remove unused member variable 2023-11-13 19:42:00 +01:00
serialization wasm: Fix test runner for asynchronous tests 2023-10-26 13:43:39 +02:00
text Improve tst_QStringConverter::encodingForName_data() 2023-11-13 19:42:01 +01:00
thread wasm: Fix test runner for asynchronous tests 2023-10-26 13:43:39 +02:00
time TestLib: provide helper functions to test relational operators 2023-11-13 16:35:54 +01:00
tools QCryptographicHash: fallback to non-OpenSSL implementation for Keccak 2023-11-08 18:40:14 +01:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00