Merge pull request #25959 from neo1973/TagLib_deprecation_warnings
[xbmc.git] / lib / libUPnP / patches / 0020-platinum-fixed-compiler-warning-about-unused-var.patch
blob5b74d6fd172e0af782968605ab439952aa9c3268
1 From a6f7512f1d377a65fc5bf1976431454780d53d73 Mon Sep 17 00:00:00 2001
2 From: davilla <davilla@4pi.com>
3 Date: Thu, 11 Apr 2013 13:22:36 -0400
4 Subject: [PATCH 20/24] platinum: fixed compiler warning about unused var
6 ---
7 lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp | 2 ++
8 1 file changed, 2 insertions(+)
10 diff --git a/lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp b/lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp
11 index d38392e..e303cc6 100644
12 --- a/lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp
13 +++ b/lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp
14 @@ -211,6 +211,7 @@ PLT_StateVariable::ValidateValue(const char* value)
15 while (val) {
16 val->Trim(" ");
17 if (!m_AllowedValues.Find(NPT_StringFinder(*val))) {
18 +#if defined(NPT_CONFIG_ENABLE_LOGGING)
19 NPT_LOG_WARNING_2("Invalid value of %s for state variable %s",
20 (const char*)*val,
21 (const char*)m_Name);
22 @@ -218,6 +219,7 @@ PLT_StateVariable::ValidateValue(const char* value)
23 NPT_String *val = *m_AllowedValues.GetItem(i);
24 NPT_LOG_WARNING_1("Allowed: %s", (const char*)*val);
26 +#endif
27 return NPT_ERROR_INVALID_PARAMETERS;
29 ++val;
30 --
31 1.7.11.msysgit.0