]> git.saurik.com Git - wxWidgets.git/commitdiff
avoid a warning about unused function in release build
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Apr 2009 21:30:37 +0000 (21:30 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Apr 2009 21:30:37 +0000 (21:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/printdlg.cpp

index f2b04942b7374bc5784145dec66711d689762706..251374b6659d72a3cfa5246dd568936faf0cb6a8 100644 (file)
@@ -46,6 +46,8 @@
 // wxWindowsPrintNativeData
 //----------------------------------------------------------------------------
 
+#if wxDEBUG_LEVEL
+
 static wxString wxGetPrintDlgError()
 {
     DWORD err = CommDlgExtendedError();
@@ -79,6 +81,9 @@ static wxString wxGetPrintDlgError()
     return msg;
 }
 
+#endif // wxDEBUG_LEVEL
+
+
 static HGLOBAL
 wxCreateDevNames(const wxString& driverName,
                  const wxString& printerName,
@@ -364,7 +369,9 @@ bool wxWindowsPrintNativeData::TransferFrom( const wxPrintData &data )
             pd.hDevMode = NULL;
             pd.hDevNames = NULL;
 
+#ifdef wxDEBUG_LEVEL
             wxLogDebug(wxT("Printing error: ") + wxGetPrintDlgError());
+#endif // wxDEBUG_LEVEL
         }
         else
         {