From 77aa6744ca2babddd21df74887d5bac1b6b87680 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Sat, 11 Mar 2017 16:40:33 +0100 Subject: [PATCH] oids: fix this statement may fall through [-Werror=implicit-fallthrough] found by gcc7 Change-Id: I8f84414be693ea8ebcfef003480e9ee05de94ea0 Reviewed-on: https://code.wireshark.org/review/20495 Reviewed-by: Michael Mann --- epan/oids.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/epan/oids.c b/epan/oids.c index a43d65d47e..f60476967c 100644 --- a/epan/oids.c +++ b/epan/oids.c @@ -1132,9 +1132,13 @@ guint oid_subid2encoded(wmem_allocator_t *scope, guint subids_len, guint32* subi switch(len) { default: *bytes_p=NULL; return 0; case 5: *(b++) = ((subid & 0xF0000000) >> 28) | 0x80; + /* FALL THROUGH */ case 4: *(b++) = ((subid & 0x0FE00000) >> 21) | 0x80; + /* FALL THROUGH */ case 3: *(b++) = ((subid & 0x001FC000) >> 14) | 0x80; + /* FALL THROUGH */ case 2: *(b++) = ((subid & 0x00003F80) >> 7) | 0x80; + /* FALL THROUGH */ case 1: *(b++) = subid & 0x0000007F ; break; } }