From 4990515abaff2ef43b85c1004dacc3cee54b9cac Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 25 Nov 2019 21:16:00 -0800 Subject: [PATCH] Avoid clang-cl -Wnon-virtual-dtor warning Extend the existing workaround to all compilers, not just GCC --- include/wx/msw/ownerdrawnbutton.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/msw/ownerdrawnbutton.h b/include/wx/msw/ownerdrawnbutton.h index 2cb6c785f9..8df7f84238 100644 --- a/include/wx/msw/ownerdrawnbutton.h +++ b/include/wx/msw/ownerdrawnbutton.h @@ -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+