mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-05-20 13:05:33 +02:00
Comment intentional fallthrough in case statements
Fixes build with gcc7 Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
20ef1f925b
commit
15d8bb6792
@ -105,6 +105,7 @@ struct define_array<A0, A1> {
|
|||||||
switch(size) {
|
switch(size) {
|
||||||
default:
|
default:
|
||||||
case 2: ptr[1].convert(a1);
|
case 2: ptr[1].convert(a1);
|
||||||
|
//fallthrough
|
||||||
case 1: ptr[0].convert(a0);
|
case 1: ptr[0].convert(a0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -193,8 +194,11 @@ struct define_array<A0, A1, A2, A3> {
|
|||||||
switch(size) {
|
switch(size) {
|
||||||
default:
|
default:
|
||||||
case 4: ptr[3].convert(a3);
|
case 4: ptr[3].convert(a3);
|
||||||
|
//fallthrough
|
||||||
case 3: ptr[2].convert(a2);
|
case 3: ptr[2].convert(a2);
|
||||||
|
//fallthrough
|
||||||
case 2: ptr[1].convert(a1);
|
case 2: ptr[1].convert(a1);
|
||||||
|
//fallthrough
|
||||||
case 1: ptr[0].convert(a0);
|
case 1: ptr[0].convert(a0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user