diff options
author | davilla <davilla@4pi.com> | 2013-04-11 13:22:36 -0400 |
---|---|---|
committer | davilla <davilla@4pi.com> | 2013-04-11 13:22:36 -0400 |
commit | f6f7c8d6db988723e26ca1ea681e7bc33e89f793 (patch) | |
tree | 744ce56d74fe0e0fe2090a6ddf42901c361bef22 /lib/libUPnP | |
parent | 6b64a49c301ffc8ec3a3e1dbd9d22a2d854ae709 (diff) |
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 47aeb5a453..7b465394f1 100644 --- a/lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp +++ b/lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp @@ -210,6 +210,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); @@ -217,6 +218,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; |