From 7fb180940f92eaa4318359ed17aea8427fc9952b Mon Sep 17 00:00:00 2001 From: Trey Henrichsen Date: Mon, 16 Mar 2020 17:21:39 -0600 Subject: [PATCH] Fix switch fallthrough --- boards/airbourne/airbourne_board.cpp | 1 + boards/airbourne/airbourne_board_config_manager.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/boards/airbourne/airbourne_board.cpp b/boards/airbourne/airbourne_board.cpp index 30aa6226..641fdd24 100644 --- a/boards/airbourne/airbourne_board.cpp +++ b/boards/airbourne/airbourne_board.cpp @@ -190,6 +190,7 @@ bool AirbourneBoard::enable_device(device_t device, hardware_config_t configurat int_i2c_.init(&i2c_config[BARO_I2C]); mag_.init(&int_i2c_); } + break; default: return false; } diff --git a/boards/airbourne/airbourne_board_config_manager.cpp b/boards/airbourne/airbourne_board_config_manager.cpp index 6e742e16..deddce76 100644 --- a/boards/airbourne/airbourne_board_config_manager.cpp +++ b/boards/airbourne/airbourne_board_config_manager.cpp @@ -52,6 +52,7 @@ ConfigManager::ConfigResponse AirbourneBoardConfigManager::check_config_change(d case Configuration::RC: if(config ==AirbourneConfiguration::RC_PPM) // PPM is not known to conflict with anything break; + [[gnu::fallthrough]]; case Configuration::SERIAL: case Configuration::GNSS: if(port != NO_PORT)