1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

use c++17 [[fallthrough]]; (#9149)

This commit is contained in:
Thomas Rupprecht
2025-06-27 04:40:42 +02:00
committed by GitHub
parent 87321ce10b
commit 61dfd5541f
5 changed files with 21 additions and 22 deletions

View File

@@ -312,7 +312,7 @@ FileDecoderState AudioDecoder::decode_mp3_() {
if (err) {
switch (err) {
case esp_audio_libs::helix_decoder::ERR_MP3_OUT_OF_MEMORY:
// Intentional fallthrough
[[fallthrough]];
case esp_audio_libs::helix_decoder::ERR_MP3_NULL_POINTER:
return FileDecoderState::FAILED;
break;