Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58233fc3 authored by Nick Desaulniers's avatar Nick Desaulniers
Browse files

[system][bt] fix -Wimplicit-fallthrough



Clang now requires an explicit attribute for C code.

Bug: 139945549
Test: mm
Change-Id: Ie2ccf452ff2a6ef65892d94dc0ec9943a1b1da6c
Signed-off-by: default avatarNick Desaulniers <ndesaulniers@google.com>
parent 0ab955fc
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -33,6 +33,12 @@

#define SPECIALIZE_READ_SAMPLES_JOINT

#if __has_attribute(fallthrough)
#define __fallthrough __attribute__((__fallthrough__))
#else
#define __fallthrough
#endif

/**
 * Scans through a buffer looking for a codec syncword. If the decoder has been
 * set for enhanced operation using OI_CODEC_SBC_DecoderReset(), it will search
@@ -413,7 +419,7 @@ uint8_t OI_CODEC_SBC_FrameCount(OI_BYTE* frameData, uint32_t frameBytes) {

      case SBC_DUAL_CHANNEL:
        frameLen *= 2;
      /* fall through */
        __fallthrough;

      default:
        if (mode == SBC_MONO) {