mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 15:25:36 +03:00
Fix all warnings when compiling unit tests.
Use C++11 for the C++ unit test code to make the tests easier to read. Previously we were using a 17 year old standard (!) (g++98) GoogleTest is compiled with some additional flags to avoid some specific warnings. Consider enabling the warnings when upgrading GoogleTest. See https://code.google.com/p/googletest/issues/detail?id=433 Closes #941
This commit is contained in:
parent
0df22f8049
commit
704dcf46ba
3 changed files with 35 additions and 50 deletions
|
@ -254,6 +254,13 @@ serialPort_t *openSerialPort(
|
|||
portMode_t mode,
|
||||
portOptions_t options)
|
||||
{
|
||||
#if (!defined(USE_VCP) && !defined(USE_USART1) && !defined(USE_USART2) && !defined(USE_USART3) && !defined(USE_SOFTSERIAL1) && !defined(USE_SOFTSERIAL1))
|
||||
UNUSED(callback);
|
||||
UNUSED(baudRate);
|
||||
UNUSED(mode);
|
||||
UNUSED(options);
|
||||
#endif
|
||||
|
||||
serialPortUsage_t *serialPortUsage = findSerialPortUsageByIdentifier(identifier);
|
||||
if (!serialPortUsage || serialPortUsage->function != FUNCTION_NONE) {
|
||||
// not available / already in use
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue