commit | 1e547722d412a77f2708bf92cfef75c287d2cb9e | [log] [tgz] |
---|---|---|
author | Manoj Gupta <manojgupta@google.com> | Mon Aug 26 16:30:06 2019 -0700 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Tue Aug 27 01:34:18 2019 +0000 |
tree | 30f6291b9cc3012287df12fbe1573242dddbb1da | |
parent | fbebe833b180a1a0685803c59bba38916826dd2b [diff] |
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>
diff --git a/crypto/asn1/tasn_enc.c b/crypto/asn1/tasn_enc.c index d89ec8a..3722a51 100644 --- a/crypto/asn1/tasn_enc.c +++ b/crypto/asn1/tasn_enc.c
@@ -192,7 +192,7 @@ /* 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);
diff --git a/crypto/fipsmodule/cipher/cipher.c b/crypto/fipsmodule/cipher/cipher.c index 7c6fa8e..c50c6c5 100644 --- a/crypto/fipsmodule/cipher/cipher.c +++ b/crypto/fipsmodule/cipher/cipher.c
@@ -192,7 +192,7 @@ 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));