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

Commit 749d02b4 authored by Nick Desaulniers's avatar Nick Desaulniers Committed by android-build-merger
Browse files

Merge "[system][bt] fix -Wimplicit-fallthrough"

am: acf01af5

Change-Id: I442f92a48889168b428491515bee452cf84d96bb
parents 5f9ede45 acf01af5
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) {