From 450d9ce2b53e5f0ec9225ebab438374b509cfb38 Mon Sep 17 00:00:00 2001 From: ARATA Mizuki Date: Mon, 21 Sep 2015 21:43:30 +0900 Subject: [PATCH] Suppress clang warning [-Winconsistent-missing-override] for GetClassInfo() in wxDECLARE_ABSTRACT_CLASS. --- include/wx/rtti.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/wx/rtti.h b/include/wx/rtti.h index 51017baa2f..308b65767b 100644 --- a/include/wx/rtti.h +++ b/include/wx/rtti.h @@ -128,7 +128,9 @@ WXDLLIMPEXP_BASE wxObject *wxCreateDynamicObject(const wxString& name); #define wxDECLARE_ABSTRACT_CLASS(name) \ public: \ static wxClassInfo ms_classInfo; \ - virtual wxClassInfo *GetClassInfo() const + wxCLANG_WARNING_SUPPRESS(inconsistent-missing-override) \ + virtual wxClassInfo *GetClassInfo() const \ + wxCLANG_WARNING_RESTORE(inconsistent-missing-override) #define wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(name) \ wxDECLARE_NO_ASSIGN_CLASS(name); \