use -Wunused-parameter with gcc for consistency with MSVC and other compilers which warn about this; fix the uncovered warnings in wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -63,13 +63,13 @@ static void gtk_filedialog_ok_callback(GtkWidget *widget, wxFileDialog *dialog)
|
||||
{
|
||||
if ( !g_file_test(filename, G_FILE_TEST_EXISTS) )
|
||||
{
|
||||
wxMessageDialog dlg( dialog, _("Please choose an existing file."),
|
||||
wxMessageDialog dlg( dialog, _("Please choose an existing file."),
|
||||
_("Error"), wxOK| wxICON_ERROR);
|
||||
dlg.ShowModal();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// change to the directory where the user went if asked
|
||||
if (style & wxFD_CHANGE_DIR)
|
||||
{
|
||||
@@ -91,7 +91,8 @@ static void gtk_filedialog_ok_callback(GtkWidget *widget, wxFileDialog *dialog)
|
||||
extern "C"
|
||||
{
|
||||
|
||||
static void gtk_filedialog_cancel_callback(GtkWidget *w, wxFileDialog *dialog)
|
||||
static void
|
||||
gtk_filedialog_cancel_callback(GtkWidget * WXUNUSED(w), wxFileDialog *dialog)
|
||||
{
|
||||
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, wxID_CANCEL);
|
||||
event.SetEventObject(dialog);
|
||||
|
Reference in New Issue
Block a user