From c514752837dd97ce0992f46772dd66dbac9f05a8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 20 Mar 2010 12:45:47 +0000 Subject: [PATCH] Fix some harmless unused parameter warnings. 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 | 2 ++ src/stc/PlatWX.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/common/intl.cpp b/src/common/intl.cpp index ff680307af..004aadbe80 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -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 diff --git a/src/stc/PlatWX.cpp b/src/stc/PlatWX.cpp index 7512383fca..ac4c035126 100644 --- a/src/stc/PlatWX.cpp +++ b/src/stc/PlatWX.cpp @@ -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); }