Skip to content

Commit 2259e5d

Browse files
committed
Fix [-Wimplicit-fallthrough] warnings in SOAP extension
1 parent a1a05c7 commit 2259e5d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

ext/soap/php_encoding.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1766,6 +1766,8 @@ static sdlTypePtr model_array_element(sdlContentModelPtr model)
17661766
return model_array_element(tmp);
17671767
} ZEND_HASH_FOREACH_END();
17681768
}
1769+
/* TODO Check this is correct */
1770+
fallthrough;
17691771
case XSD_CONTENT_GROUP: {
17701772
return model_array_element(model->u.group->model);
17711773
}

ext/soap/php_schema.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2207,6 +2207,7 @@ static void schema_content_model_fixup(sdlCtx *ctx, sdlContentModelPtr model)
22072207
model->max_occurs = 1;
22082208
}
22092209
}
2210+
fallthrough;
22102211
case XSD_CONTENT_SEQUENCE:
22112212
case XSD_CONTENT_ALL: {
22122213
sdlContentModelPtr tmp;

0 commit comments

Comments
 (0)