Re: gcc -Werror and -Wextra fails
Dietmar Schwertberger <[email protected]> Tue, 13 Aug 2019 18:30:35 +0200
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Message-ID | <[email protected]> |
On 13.08.2019 05:16, Brendan Simon (eTRIX) wrote:
> It would be nice for it to build with the stricter compiler settings.
> Maybe one of these (or something else) in the generated code?
When I look at the test cases, I see code like this:
CPPOgg2_MyFrame::CPPOgg2_MyFrame(wxWindow* parent, wxWindowID id, const
wxString& title, const wxPoint& pos, const wxSize& size, long style):
wxFrame(parent, id, title, pos, size, wxDEFAULT_FRAME_STYLE)
MyFrame::MyFrame(wxWindow* parent, wxWindowID id, const wxString& title,
const wxPoint& pos, const wxSize& size, long style):
wxFrame(parent, id, title, pos, size, style)
Both test cases have header files with code like this:
class MyFrame: public wxFrame {
public:
MyFrame(wxWindow* parent, wxWindowID id, const wxString& title,
const wxPoint& pos=wxDefaultPosition, const wxSize& size=wxDefaultSize,
long style=wxDEFAULT_FRAME_STYLE);
The second example does look right for me. Would that fix your warnings?
I need to have a look what is the root cause for the difference, but I
don't know whether I will find the time this week.
Regards,
Dietmar
_______________________________________________
wxGlade-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxglade-general