From 3653b753d31689b15b383a2d234c3000e42f466e Mon Sep 17 00:00:00 2001 From: Scott Furry Date: Sun, 12 Nov 2017 17:02:43 +0100 Subject: [PATCH] Fix clang -Winconsistent-missing-override in wxGLApp Use "override" for wxGLApp::GetXVisualInfo(), but only for wxGTK2 where it really overrides it, unlike in wxX11. Closes #17995. --- include/wx/unix/glx11.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/wx/unix/glx11.h b/include/wx/unix/glx11.h index 50305778c4..a27c470332 100644 --- a/include/wx/unix/glx11.h +++ b/include/wx/unix/glx11.h @@ -147,6 +147,9 @@ public: // backwards compatibility and also because wxGTK has it we could start // using it for the same purpose in wxX11 too some day. virtual void *GetXVisualInfo() +#ifdef __WXGTK20__ + wxOVERRIDE +#endif { return wxGLCanvasX11::GetDefaultXVisualInfo(); }