Hello. In wxWidgets, it's recommended to not Skip() an event from a command handler from the point this command is supposed to be handled by one handler only. Also, when this handler does nothing with the passed event, the compiler (set to output extra warnings) raises this kind of warning :
warning: unused parameter 'event' [-Wunused-parameter]
So, I would like to use the WXUNUSED macro at call like this :
void OnQuit(wxCommandEvent& WXUNUSED(event));
Knowing this declaration is in a code part autogenerated by wxSmith, can I be sure it will not overwrite my modification ?
From my test, editing the menu item connected with this handler, it did not overwritten the declaration above, but I don't know the wxSmith internal and if it will not do it another time in another context... So, does the one(s) of you who maintain and continue the wxSmith development could confirm me (or not) that it's safe to modify this part of the autogenerated code (the part containing the prototypes in a header file) ?
Knowing, of course, I prefer to not move this line (and a lot of others in the same case) outside of the autogenerated part, since it would mean that I abandon wxSmith progressively