Browse Source

demodmeshcore/meshcoredemoddecoderlora: mark intentional switch fallthrough

Add Q_FALLTHROUGH() when crApp=4 falls through to the crApp=3
syndrome logic. This preserves the existing behavior while avoiding
implicit-fallthrough warnings across GCC, Clang, and MSVC.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
chirpmodem-v8.0.0
Robin Getz 3 months ago
parent
commit
dcd67310bd
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 2
      plugins/channelrx/demodmeshcore/meshcoredemoddecoderlora.h

2
plugins/channelrx/demodmeshcore/meshcoredemoddecoderlora.h

@ -224,8 +224,8 @@ private: @@ -224,8 +224,8 @@ private:
}
// fall through to crApp=3 syndrome logic
Q_FALLTHROUGH();
}
// no break
case 3:
{
const bool s0 = codeword[0] ^ codeword[1] ^ codeword[2] ^ codeword[4];

Loading…
Cancel
Save