]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix some harmless unused parameter warnings.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 20 Mar 2010 12:45:47 +0000 (12:45 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 20 Mar 2010 12:45:47 +0000 (12:45 +0000)
These warnings only happen in specific builds (when HAVE_LANGINFO_H and
wxUSE_DISPLAY are undefined/off).

See #11817.

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

src/common/intl.cpp
src/stc/PlatWX.cpp

index ff680307afab4cf01e3c77e45b662991b80e22b8..004aadbe808dfcd18890127aa74f5705e3386cc4 100644 (file)
@@ -3097,6 +3097,8 @@ wxString GetDateFormatFromLangInfo(wxLocaleInfo index)
 
     return fmtDateOnly;
 #else // !HAVE_LANGINFO_H
+    wxUnusedVar(index);
+
     // no fallback, let the application deal with unavailability of
     // nl_langinfo() itself as there is no good way for us to do it (well, we
     // could try to reverse engineer the format from strftime() output but this
index 7512383fca331c47bf4f4beec09d3cfa13cc928a..ac4c035126c6e7b8674a1f276d0c5d7ccc110ce0 100644 (file)
@@ -753,6 +753,8 @@ PRectangle Window::GetMonitorRect(Point pt) {
     int n = wxDisplay::GetFromPoint(wxPoint(pt.x, pt.y));
     wxDisplay dpy(n == wxNOT_FOUND ? 0 : n);
     rect = dpy.GetGeometry();
+#else
+    wxUnusedVar(pt);
 #endif
     return PRectangleFromwxRect(rect);
 }