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
@@ -458,7 +458,7 @@ bool otThreadGetAutoStart(otInstance *aInstance)
return autoStart != 0;
#else
(void)aInstance;
OT_UNUSED_VARIABLE(aInstance);
return false;
#endif
}
@@ -469,8 +469,8 @@ otError otThreadSetAutoStart(otInstance *aInstance, bool aStartAutomatically)
uint8_t autoStart = aStartAutomatically ? 1 : 0;
return otPlatSettingsSet(aInstance, Settings::kKeyThreadAutoStart, &autoStart, sizeof(autoStart));
#else
(void)aInstance;
(void)aStartAutomatically;
OT_UNUSED_VARIABLE(aInstance);
OT_UNUSED_VARIABLE(aStartAutomatically);
return OT_ERROR_NOT_IMPLEMENTED;
#endif
}