core: fix optimized build broken in changeset 12922:d5736db31887

This commit is contained in:
Tommaso Pecorella
2017-06-12 17:03:08 +01:00
parent a0dd906c6d
commit d99d3907df

View File

@@ -243,7 +243,7 @@ void LogComponentDisableAll (enum LogLevel level);
* \param [in] name The log component name.
*/
#define NS_LOG_STATIC_TEMPLATE_DEFINE(name) \
static LogComponent & g_log = GetLogComponent (name)
static LogComponent & NS_UNUSED_GLOBAL (g_log) = GetLogComponent (name)
/**
* Use \ref NS_LOG to output a message of level LOG_ERROR.