gcc -Werror and -Wextra fails

"Brendan Simon (eTRIX)" <[email protected]> Tue, 13 Aug 2019 13:16:32 +1000
Newsgroups gmane.comp.python.wxglade
Organization eTRIX pty ltd
Message-ID <[email protected]>
Hi Dietmar,

I enabled `-Werror` and `-Wextra` on my app build and it fails due to
unused parameters in the generated wxglade code.

    ../LCD_16x4_text_panel_WXG.cpp:19:128: error: unused parameter
    'style' [-Werror,-Wunused-parameter]
    LCD_16x4_text_panel_WXG::LCD_16x4_text_panel_WXG(wxWindow* parent,
    wxWindowID id, const wxPoint& pos, const wxSize& size, long style):
                                                                                                                                  
    ^
    ../LCD_16x4_text_panel_wx.cpp:16:130: error: unused parameter
    'style' [-Werror,-Wunused-parameter]
    LCD_16x4_text_panel_wx :: LCD_16x4_text_panel_wx ( wxWindow* parent,
    wxWindowID id, const wxPoint& pos, const wxSize& size, long style )
                                                                                                                                    
    ^
    ../MySim_WXG.cpp:19:137: error: unused parameter 'style'
    [-Werror,-Wunused-parameter]
    MySim_WXG::MySim_WXG(wxWindow* parent, wxWindowID id, const
    wxString& title, const wxPoint& pos, const wxSize& size, long style):

                                                                               

It would be nice for it to build with the stricter compiler settings. 
Maybe one of these (or something else) in the generated code?

    if (style) {} /* avoid unused parameter warning */

    (void)style; /* avoid unused parameter warning */


Brendan.

_______________________________________________
wxGlade-general mailing list
wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/wxglade-general