Use fallthrough statement attribute

This commit is contained in:
Nicolas Williams
2022-01-14 16:32:04 -06:00
parent 367f9ddd7d
commit ddc6113610
17 changed files with 41 additions and 3 deletions

View File

@@ -2438,8 +2438,10 @@ hx509_verify_path(hx509_context context,
* EE checking below.
*/
type = EE_CERT;
fallthrough
/* FALLTHROUGH */
}
fallthrough
}
/* FALLTHROUGH */
case EE_CERT:

View File

@@ -182,6 +182,7 @@ fill_CMSIdentifier(const hx509_cert cert,
&id->u.subjectKeyIdentifier);
if (ret == 0)
break;
fallthrough
/* FALLTHROUGH */
case CMS_ID_NAME: {
hx509_name name;

View File

@@ -230,6 +230,7 @@ hx509_pem_read(hx509_context context,
where = INDATA;
goto indata;
}
fallthrough
/* FALLTHROUGH */
case INHEADER:
if (buf[0] == '\0') {