projects
/
vuplus_xbmc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abab960
)
platinum: fixed compiler warning about unused var
author
davilla
<davilla@4pi.com>
Thu, 11 Apr 2013 17:22:36 +0000
(13:22 -0400)
committer
montellese
<montellese@xbmc.org>
Sat, 17 May 2014 07:53:14 +0000
(09:53 +0200)
lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp
patch
|
blob
|
history
diff --git
a/lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp
b/lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp
index
d38392e
..
e303cc6
100644
(file)
--- a/
lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp
+++ b/
lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp
@@
-211,6
+211,7
@@
PLT_StateVariable::ValidateValue(const char* value)
while (val) {
val->Trim(" ");
if (!m_AllowedValues.Find(NPT_StringFinder(*val))) {
+#if defined(NPT_CONFIG_ENABLE_LOGGING)
NPT_LOG_WARNING_2("Invalid value of %s for state variable %s",
(const char*)*val,
(const char*)m_Name);
@@
-218,6
+219,7
@@
PLT_StateVariable::ValidateValue(const char* value)
NPT_String *val = *m_AllowedValues.GetItem(i);
NPT_LOG_WARNING_1("Allowed: %s", (const char*)*val);
}
+#endif
return NPT_ERROR_INVALID_PARAMETERS;
}
++val;