]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix harmless unused parameter warnings in minimal build.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 10 Nov 2010 13:52:17 +0000 (13:52 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 10 Nov 2010 13:52:17 +0000 (13:52 +0000)
No real changes, just add some wxUnusedVar() to avoid warnings about
parameters unused in some non-default build configurations.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/bitmap.cpp
src/gtk/evtloop.cpp
src/unix/utilsunx.cpp

index 5cbff7b1c1635c18bc2f8d9e358c30f5a8fe212d..b26bafcff7a813d8b30d495c0b33f9e9fd88f6dc 100644 (file)
@@ -672,6 +672,8 @@ bool wxBitmap::LoadFile( const wxString &name, wxBitmapType type )
     else
 #endif
     {
+        wxUnusedVar(type); // The type is detected automatically by GDK.
+
         UnRef();
         GdkPixbuf* pixbuf = gdk_pixbuf_new_from_file(name.fn_str(), NULL);
         if (pixbuf)
index 54b216836ac13d2df3cdc0696e4e464e7230fa0a..a35be35ab07617dcf738d3ef060a10686cef7877 100644 (file)
@@ -91,10 +91,12 @@ void wxGUIEventLoop::WakeUp()
 
 extern "C"
 {
-static gboolean wx_on_channel_event(GIOChannel * WXUNUSED_UNLESS_DEBUG(channel),
+static gboolean wx_on_channel_event(GIOChannel *channel,
                                     GIOCondition condition,
                                     gpointer data)
 {
+    wxUnusedVar(channel); // Unused if !wxUSE_LOG || !wxDEBUG_LEVEL
+
     wxLogTrace(wxTRACE_EVT_SOURCE,
                "wx_on_channel_event, fd=%d, condition=%08x",
                g_io_channel_unix_get_fd(channel), condition);
index fa5ee5d7b7ce8d240b8a9f6b83d86431f55e267d..f5380ab137addde78c396723d8cb7b0dba48bc9d 100644 (file)
@@ -1307,6 +1307,8 @@ bool wxAppTraits::CheckForRedirectedIO(wxExecuteData& execData)
 
     return hasIO;
 #else // !HAS_PIPE_INPUT_STREAM
+    wxUnusedVar(execData);
+
     return false;
 #endif // HAS_PIPE_INPUT_STREAM/!HAS_PIPE_INPUT_STREAM
 }