Added 'fallthrough' comments to suppress gcc7 warnings.

This commit is contained in:
Takatoshi Kondo 2017-04-24 17:16:43 +09:00
parent 15d8bb6792
commit e90231c865
2 changed files with 1059 additions and 5 deletions

View File

@ -66,7 +66,9 @@ struct define_array<A0<%1.upto(i) {|j|%>, A<%=j%><%}%>> {
msgpack::object *ptr = o.via.array.ptr;
switch(size) {
default:<%(i).downto(0) {|j|%>
case <%=j+1%>: ptr[<%=j%>].convert(a<%=j%>);<%}%>
case <%=j+1%>: ptr[<%=j%>].convert(a<%=j%>);
// fallthrough
<%}%>
}
}
}

File diff suppressed because it is too large Load Diff