Avoid clang-cl -Wnon-virtual-dtor warning

Extend the existing workaround to all compilers, not just GCC
This commit is contained in:
Paul Cornett
2019-11-25 21:16:00 -08:00
parent ef99c2a6db
commit 4990515aba

View File

@@ -42,7 +42,7 @@ protected:
// even if it is protected, but actually does not give any warnings if the
// dtor is not defined at all, so work around this 3.4.5 bug inside our
// general g++ workaround.
#if wxCHECK_GCC_VERSION(4, 0)
#if !defined(__GNUC__) || wxCHECK_GCC_VERSION(4, 0)
~wxMSWOwnerDrawnButtonBase() { }
#endif // g++ 4.0+