From 626a96058f9d4474d18336a449d2aac2fffe3088 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 19 Mar 2019 02:12:01 +0100 Subject: [PATCH] Fix clang -Winconsistent-missing-override when not using RTTI In this case wx-specific RTTI is used and GetWxTypeId() method was overridden without using wxOVERRIDE, which resulted in dozens of warnings for each translation unit. --- include/wx/typeinfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/typeinfo.h b/include/wx/typeinfo.h index 14fb057fc9..c20106df30 100644 --- a/include/wx/typeinfo.h +++ b/include/wx/typeinfo.h @@ -106,7 +106,7 @@ typedef void (*wxTypeIdentifier)(); // WX_DECLARE_TYPEINFO() or WX_DECLARE_TYPEINFO_INLINE() however. #define _WX_DECLARE_TYPEINFO_CUSTOM(CLS, IDENTFUNC) \ public: \ - virtual wxTypeIdentifier GetWxTypeId() const \ + virtual wxTypeIdentifier GetWxTypeId() const wxOVERRIDE \ { \ return reinterpret_cast \ (&IDENTFUNC); \