Use OT_UNUSED_VARIABLE(variable) to replace (void)variable (#1934)

This commit is contained in:
Abtin Keshavarzian
2017-06-26 22:22:37 -07:00
committed by Jonathan Hui
parent f27654ec36
commit 8924a545c0
30 changed files with 161 additions and 162 deletions
+3 -3
View File
@@ -222,7 +222,7 @@ otLogLevel otGetDynamicLogLevel(otInstance *aInstance)
logLevel = aInstance->mLogLevel;
#else
logLevel = static_cast<otLogLevel>(OPENTHREAD_CONFIG_LOG_LEVEL);
(void)aInstance;
OT_UNUSED_VARIABLE(aInstance);
#endif
return logLevel;
@@ -236,8 +236,8 @@ otError otSetDynamicLogLevel(otInstance *aInstance, otLogLevel aLogLevel)
aInstance->mLogLevel = aLogLevel;
#else
error = OT_ERROR_DISABLED_FEATURE;
(void)aInstance;
(void)aLogLevel;
OT_UNUSED_VARIABLE(aInstance);
OT_UNUSED_VARIABLE(aLogLevel);
#endif
return error;