mirror of
https://github.com/espressif/openthread.git
synced 2026-07-09 05:40:27 +00:00
Use OT_UNUSED_VARIABLE(variable) to replace (void)variable (#1934)
This commit is contained in:
committed by
Jonathan Hui
parent
f27654ec36
commit
8924a545c0
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user