Warning with Clang and -Wall


#1

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;

#2

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


#3

Thanks–everything runs squeaky-clean now!