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:
@@ -368,6 +368,13 @@
|
|||||||
GCC_TURN_OFF(zero-as-null-pointer-constant)
|
GCC_TURN_OFF(zero-as-null-pointer-constant)
|
||||||
#endif
|
#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
|
// 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
|
// ignored by gcc up to 9.x for some reason, so we have no choice but to
|
||||||
// disable it.
|
// disable it.
|
||||||
|
Reference in New Issue
Block a user