Enable -Wconversion on clang and fix all warnings. (#358)

This commit is contained in:
Jonathan Hui
2016-08-10 11:52:22 -07:00
committed by GitHub
parent c7f62aa235
commit 4050c68577
59 changed files with 503 additions and 436 deletions
+2 -2
View File
@@ -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)