]> The Tcpdump Group git mirrors - tcpdump/commit
Frame Relay: denote a genuine fall through case
authorDenis Ovsienko <[email protected]>
Fri, 21 Jul 2017 21:58:35 +0000 (22:58 +0100)
committerDenis Ovsienko <[email protected]>
Sat, 22 Jul 2017 18:35:06 +0000 (19:35 +0100)
commit26a4aa405a2d1b6fd9ee4c122abc5fb731e5f11e
treef6b4b0b3ba97e6a1840b95e027811ad08e2945dd
parent6df678ca315946ed6190bc8fe0a80f3c36d246c4
Frame Relay: denote a genuine fall through case

The source code comment explains it should fall through but GCC does not
pick it up, that's what the new macro is for.

./print-fr.c: In function ‘mfr_print’:
./print-fr.c:510:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
                 if (ie_len == sizeof(struct timeval)) {
                    ^
./print-fr.c:521:13: note: here
             case MFR_CTRL_IE_VENDOR_EXT:
             ^~~~
print-fr.c