[style] relocate OT_UNUSED_VARIABLE (#3299)

This commit is contained in:
Jonathan Hui
2018-11-17 12:04:41 -08:00
parent f6afc5599a
commit e14d763e2e
70 changed files with 570 additions and 383 deletions
+4 -3
View File
@@ -124,6 +124,7 @@ OT_TOOL_WEAK
otError otPlatDebugUart_logfile(const char *filename)
{
OT_UNUSED_VARIABLE(filename);
return OT_ERROR_FAILED;
}
@@ -131,12 +132,12 @@ otError otPlatDebugUart_logfile(const char *filename)
/* this should not be a WEAK function */
void otPlatLog(otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat, ...)
{
va_list ap;
uint32_t now;
OT_UNUSED_VARIABLE(aLogLevel);
OT_UNUSED_VARIABLE(aLogRegion);
va_list ap;
uint32_t now;
now = otPlatAlarmMilliGetNow();
otPlatDebugUart_printf("%3d.%03d | ", (int)(now / 1000), (int)(now % 1000));
va_start(ap, aFormat);