Disable -Wsuggest-final-xxx in the headers for now
We don't use "final" in our code, as very few classes in wx code have virtual functions but are not meant to be derived from in the user code. Ideal would be to check the existing warnings and maybe apply "final" if it's relevant and disable it otherwise, as these warnings can be useful to build the application code with, but for now just disable them in the test suite.
This commit is contained in:
parent
3fc5d134a3
commit
6f9390306d
1 changed files with 7 additions and 0 deletions
|
|
@ -368,6 +368,13 @@
|
|||
GCC_TURN_OFF(zero-as-null-pointer-constant)
|
||||
#endif
|
||||
|
||||
// These ones could be useful to explore, but for now we don't use "final"
|
||||
// at all anywhere.
|
||||
#if CHECK_GCC_VERSION(5,1)
|
||||
GCC_TURN_OFF(suggest-final-methods)
|
||||
GCC_TURN_OFF(suggest-final-types)
|
||||
#endif // 5.1
|
||||
|
||||
// wxWARNING_SUPPRESS_MISSING_OVERRIDE() inside wxRTTI macros is just
|
||||
// ignored by gcc up to 9.x for some reason, so we have no choice but to
|
||||
// disable it.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue