Skip to content

Commit 15d8bb6

Browse files
committed
Comment intentional fallthrough in case statements
Fixes build with gcc7 Signed-off-by: Khem Raj <[email protected]>
1 parent 20ef1f9 commit 15d8bb6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/msgpack/v1/adaptor/detail/cpp03_define_array.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ struct define_array<A0, A1> {
105105
switch(size) {
106106
default:
107107
case 2: ptr[1].convert(a1);
108+
//fallthrough
108109
case 1: ptr[0].convert(a0);
109110
}
110111
}
@@ -193,8 +194,11 @@ struct define_array<A0, A1, A2, A3> {
193194
switch(size) {
194195
default:
195196
case 4: ptr[3].convert(a3);
197+
//fallthrough
196198
case 3: ptr[2].convert(a2);
199+
//fallthrough
197200
case 2: ptr[1].convert(a1);
201+
//fallthrough
198202
case 1: ptr[0].convert(a0);
199203
}
200204
}

0 commit comments

Comments
 (0)