wiretap (nettl/pppdump): fix this statement may fall through [-Werror=implicit-fallth...
authorAlexis La Goutte <alexis.lagoutte@gmail.com>
Mon, 27 Feb 2017 20:10:33 +0000 (21:10 +0100)
committerMichael Mann <mmann78@netscape.net>
Tue, 28 Feb 2017 00:22:17 +0000 (00:22 +0000)
Change-Id: I8c339e7484d410460d499dd2923641630b482ebe
Reviewed-on: https://code.wireshark.org/review/20303
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
wiretap/nettl.c
wiretap/pppdump.c

index 22cb007c6eb1a8e5bf4b70afe10ef0c5b2ef43ed..371beb4c01bbceb063fddcfb4b813296a9ada421 100644 (file)
@@ -719,6 +719,7 @@ static gboolean nettl_dump(wtap_dumper *wdh,
             rec_hdr.caplen = g_htonl(phdr->caplen + 3);
             rec_hdr.length = g_htonl(phdr->len + 3);
             /* fall through and fill the rest of the fields */
+        /* FALL THROUGH */
         case WTAP_ENCAP_NETTL_ETHERNET:
         case WTAP_ENCAP_NETTL_TOKEN_RING:
         case WTAP_ENCAP_NETTL_RAW_IP:
index da14798414fe81cdfb187520ba8123c8d42da885..0b4f1bca371e3aec5730d7b6ecc0d2f941974e17 100644 (file)
@@ -511,6 +511,7 @@ process_data(pppdump_t *state, FILE_T fh, pkt_t *pkt, int n, guint8 *pd,
                                 * by falling through.
                                 */
 
+                       /* FALL THROUGH */
                        default:
                                if (pkt->esc) {
                                        /*