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>
This commit is contained in:
parent
02ea90f3cc
commit
77aa6744ca
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue