Use fallthrough statement attribute (moar)

This commit is contained in:
Nicolas Williams
2022-01-14 16:53:28 -06:00
parent ddc6113610
commit c607135a03
16 changed files with 28 additions and 23 deletions

View File

@@ -2438,12 +2438,12 @@ hx509_verify_path(hx509_context context,
* EE checking below.
*/
type = EE_CERT;
fallthrough
/* FALLTHROUGH */
fallthrough
}
fallthrough
}
/* FALLTHROUGH */
fallthrough
case EE_CERT:
/*
* If there where any proxy certificates in the chain

View File

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

View File

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