mirror of
https://github.com/espressif/openthread.git
synced 2026-07-11 14:50:18 +00:00
Enable -Wconversion on clang and fix all warnings. (#358)
This commit is contained in:
@@ -110,7 +110,7 @@ void Uart::ReceiveTask(const uint8_t *aBuf, uint16_t aBufLength)
|
||||
|
||||
default:
|
||||
Output(reinterpret_cast<const char *>(aBuf), 1);
|
||||
mRxBuffer[mRxLength++] = *aBuf;
|
||||
mRxBuffer[mRxLength++] = static_cast<char>(*aBuf);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -168,7 +168,7 @@ int Uart::OutputFormat(const char *fmt, ...)
|
||||
vsnprintf(buf, sizeof(buf), fmt, ap);
|
||||
va_end(ap);
|
||||
|
||||
return Output(buf, strlen(buf));
|
||||
return Output(buf, static_cast<uint16_t>(strlen(buf)));
|
||||
}
|
||||
|
||||
void Uart::Send(void)
|
||||
|
||||
Reference in New Issue
Block a user