diff options
author | davilla <davilla@4pi.com> | 2013-04-11 13:22:36 -0400 |
---|---|---|
committer | montellese <montellese@xbmc.org> | 2014-05-17 09:53:14 +0200 |
commit | a6f7512f1d377a65fc5bf1976431454780d53d73 (patch) | |
tree | e00d688306a415f118e23e85c819289b8be84e01 /lib/libUPnP | |
parent | abab9608a647177ff2a81d5827a6a0d11358b304 (diff) |
platinum: fixed compiler warning about unused var
Diffstat (limited to 'lib/libUPnP')
-rw-r--r-- | lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp b/lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp index d38392ec7e..e303cc60e7 100644 --- 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; |