Add OPENSSL_FALLTHROUGH to a few files.

This is a followup of
https://boringssl-review.googlesource.com/c/boringssl/+/37244

There are a few files that needs the OPENSSL_FALLTHROUGH
annotation so that they compile with clang.

Bug: chromium:997709
Test: CQ
Change-Id: I05f9f85fdb39fbcb8c1193a7b0c335287022719d
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/37247
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
This commit is contained in:
Manoj Gupta
2019-08-27 01:34:18 +00:00
committed by CQ bot account: commit-bot@chromium.org
parent fbebe833b1
commit 1e547722d4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -192,7 +192,7 @@ int ASN1_item_ex_i2d(ASN1_VALUE **pval, unsigned char **out,
/* Use indefinite length constructed if requested */
if (aclass & ASN1_TFLG_NDEF)
ndef = 2;
/* fall through */
OPENSSL_FALLTHROUGH;
case ASN1_ITYPE_SEQUENCE:
i = asn1_enc_restore(&seqcontlen, out, pval, it);
+1 -1
View File
@@ -192,7 +192,7 @@ int EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,
case EVP_CIPH_CFB_MODE:
ctx->num = 0;
// fall-through
OPENSSL_FALLTHROUGH;
case EVP_CIPH_CBC_MODE:
assert(EVP_CIPHER_CTX_iv_length(ctx) <= sizeof(ctx->iv));