Warning with Clang and -Wall

3 posts / 0 new
Last post
Wm. Andrew Burnson
Offline
Last seen: 5 months 3 weeks ago
Joined: 19 Jan 2008 - 02:50
Warning with Clang and -Wall

Hi, I've been seeing this warning crop up in the tip with clang++ and -Wall turned on:

juce/modules/juce_gui_basics/windows/juce_ResizableWindow.h:204:10: warning:
     'juce::ResizableWindow::addToDesktop' hides overloaded virtual function [-Woverloaded-virtual]
   void addToDesktop();
        ^
juce/modules/juce_gui_basics/windows/juce_TopLevelWindow.h:137:18: note: hidden overloaded virtual function
     'juce::TopLevelWindow::addToDesktop' declared here
   virtual void addToDesktop (int windowStyleFlags, void* nativeWindowToAttachTo = nullptr);

This could be remedied by adding a using to the ResizableWindow class:

using TopLevelWindow::addToDesktop;

jules
Offline
Last seen: 16 min 23 sec ago
Joined: 29 Apr 2013 - 18:37
Re: Warning with Clang and -Wall

Ah, I hadn't tried -Wall.. Thanks, I'll do some clean-ups for those warnings.

Wm. Andrew Burnson
Offline
Last seen: 5 months 3 weeks ago
Joined: 19 Jan 2008 - 02:50
Re: Warning with Clang and -Wall

Thanks--everything runs squeaky-clean now!