diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2017-03-11 16:40:33 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-03-11 17:29:24 +0000 |
commit | 77aa6744ca2babddd21df74887d5bac1b6b87680 (patch) | |
tree | 7048af7275c17383d8dca11cd42adb90fc25e044 /epan/oids.c | |
parent | 02ea90f3ccf2a349c2569308f2c98ef159c0b466 (diff) | |
download | wireshark-77aa6744ca2babddd21df74887d5bac1b6b87680.tar.gz |
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 <mmann78@netscape.net>
Diffstat (limited to 'epan/oids.c')
-rw-r--r-- | epan/oids.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } } |