Fix harmless unused parameters warnings in builds without wxLogTrace().
Fix warnings appearing when building with --disable-debug under Unix by either referencing the parameters or variables which become unused then, because wxLogTrace() calls are compiled out, or by not compiling the code whose only purpose is to call wxLogTrace() at all. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -96,6 +96,8 @@ wxStringToStringHashMap gs_msgIdCharset;
|
||||
// Platform specific helpers
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#if wxUSE_LOG_TRACE
|
||||
|
||||
void LogTraceArray(const char *prefix, const wxArrayString& arr)
|
||||
{
|
||||
wxLogTrace(TRACE_I18N, "%s: [%s]", prefix, wxJoin(arr, ','));
|
||||
@@ -108,6 +110,13 @@ void LogTraceLargeArray(const wxString& prefix, const wxArrayString& arr)
|
||||
wxLogTrace(TRACE_I18N, " %s", *i);
|
||||
}
|
||||
|
||||
#else // !wxUSE_LOG_TRACE
|
||||
|
||||
#define LogTraceArray(prefix, arr)
|
||||
#define LogTraceLargeArray(prefix, arr)
|
||||
|
||||
#endif // wxUSE_LOG_TRACE/!wxUSE_LOG_TRACE
|
||||
|
||||
// Use locale-based detection as a fallback
|
||||
wxString GetPreferredUILanguageFallback(const wxArrayString& WXUNUSED(available))
|
||||
{
|
||||
@@ -181,6 +190,8 @@ wxString GetPreferredUILanguage(const wxArrayString& available)
|
||||
|
||||
#elif defined(__WXOSX__)
|
||||
|
||||
#if wxUSE_LOG_TRACE
|
||||
|
||||
void LogTraceArray(const char *prefix, CFArrayRef arr)
|
||||
{
|
||||
wxString s;
|
||||
@@ -194,6 +205,8 @@ void LogTraceArray(const char *prefix, CFArrayRef arr)
|
||||
wxLogTrace(TRACE_I18N, "%s: [%s]", prefix, s);
|
||||
}
|
||||
|
||||
#endif // wxUSE_LOG_TRACE
|
||||
|
||||
wxString GetPreferredUILanguage(const wxArrayString& available)
|
||||
{
|
||||
wxStringToStringHashMap availableNormalized;
|
||||
|
Reference in New Issue
Block a user