diff --git a/src/common/imagpng.cpp b/src/common/imagpng.cpp index deac2bc1c9..54c3ac8819 100644 --- a/src/common/imagpng.cpp +++ b/src/common/imagpng.cpp @@ -175,7 +175,7 @@ void PNGLINKAGEMODE wx_PNG_stream_writer( png_structp png_ptr, png_bytep data, // from pngerror.c // so that the libpng doesn't send anything on stderr void -PNGLINKAGEMODE wx_png_error(png_structp png_ptr, png_const_charp message) +PNGLINKAGEMODE wx_png_error(png_structp WXUNUSED(png_ptr), png_const_charp message) { wxLogFatalError( wxString::FromAscii(message) ); } diff --git a/src/common/prntbase.cpp b/src/common/prntbase.cpp index e1f655959f..e0a3bbf3a5 100644 --- a/src/common/prntbase.cpp +++ b/src/common/prntbase.cpp @@ -171,8 +171,12 @@ bool wxNativePrintFactory::HasPrintSetupDialog() wxDialog *wxNativePrintFactory::CreatePrintSetupDialog( wxWindow *parent, wxPrintData *data ) { #if defined(__WXMSW__) && !defined(__WXUNIVERSAL__) + wxUnusedVar(parent); + wxUnusedVar(data); return NULL; #elif defined(__WXMAC__) + wxUnusedVar(parent); + wxUnusedVar(data); return NULL; #else // Only here do we need to provide the print setup