]> git.saurik.com Git - wxWidgets.git/commitdiff
Suppress some harmless warnings about unused parameters in wxOSX.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 4 Jul 2011 14:05:14 +0000 (14:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 4 Jul 2011 14:05:14 +0000 (14:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/renderer.cpp
src/osx/core/evtloop_cf.cpp
src/osx/window_osx.cpp
src/stc/stc.cpp

index 26aa6d6bafd9a2ac4694a3f40dfd4e43142ac815..7e5c766acc0ed44525afb9607103e9dcd51759c2 100644 (file)
@@ -40,7 +40,7 @@
 
 
 // check if we're having a CGContext we can draw into
-inline bool wxHasCGContext(wxWindow* win, wxDC& dc)
+inline bool wxHasCGContext(wxWindow* WXUNUSED(win), wxDC& dc)
 {
     wxGCDCImpl* gcdc = wxDynamicCast( dc.GetImpl() , wxGCDCImpl);
     
index 03a71cb9c3192cb3e6ffdec18b6b0c836eeae6a1..afe67a048c4a787f8495cde12cf2f3272b7a9638 100644 (file)
@@ -192,7 +192,9 @@ void wxCFEventLoop::CommonModeObserverCallBack(CFRunLoopObserverRef WXUNUSED(obs
     }
 }
 
-void wxCFEventLoop::DefaultModeObserverCallBack(CFRunLoopObserverRef WXUNUSED(observer), int activity)
+void
+wxCFEventLoop::DefaultModeObserverCallBack(CFRunLoopObserverRef WXUNUSED(observer),
+                                           int WXUNUSED(activity))
 {
     /*
     if ( activity & kCFRunLoopBeforeTimers )
index 628f51c44da1a3fce43d1403d3d0a782fc6d6163..00115ba251b4ba42d4f7d94cf8927127d08cb350 100644 (file)
@@ -444,7 +444,8 @@ void wxWindowMac::MacChildAdded()
 #endif
 }
 
-void wxWindowMac::MacPostControlCreate(const wxPoint& WXUNUSED(pos), const wxSize& size)
+void wxWindowMac::MacPostControlCreate(const wxPoint& WXUNUSED(pos),
+                                       const wxSize& WXUNUSED(size))
 {
     // todo remove if refactoring works correctly
 #if 0
index b0a98e41eecbd572531fec00e00e8880a551f7e6..c31f350f55f9ee09f129cb392f0280cc56793dea 100644 (file)
@@ -527,9 +527,9 @@ void wxStyledTextCtrl::MarkerDefine(int markerNumber, int markerSymbol,
                 const wxColour& background) {
 
                 SendMsg(2040, markerNumber, markerSymbol);
-                if (foreground.Ok())
+                if (foreground.IsOk())
                     MarkerSetForeground(markerNumber, foreground);
-                if (background.Ok())
+                if (background.IsOk())
                     MarkerSetBackground(markerNumber, background);
 }