[Cryptech-Commits] [sw/libhal] 02/04: fallthrough comments to silence compiler warnings

git at cryptech.is git at cryptech.is
Wed Mar 11 00:11:18 UTC 2020


This is an automated email from the git hooks/post-receive script.

paul at psgd.org pushed a commit to branch master
in repository sw/libhal.

commit ccf20b321cf88d2f4af53c0789c9b18cfd2386ea
Author: Paul Selkirk <paul at psgd.org>
AuthorDate: Tue Mar 10 19:27:52 2020 -0400

    fallthrough comments to silence compiler warnings
---
 asn1.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/asn1.c b/asn1.c
index d57ec96..b1720f6 100644
--- a/asn1.c
+++ b/asn1.c
@@ -728,6 +728,7 @@ hal_error_t hal_asn1_decode_spki(const uint8_t **alg_oid,   size_t *alg_oid_len,
       d += hlen;
       if (vlen == 0)
         break;
+      /* fall through */
 
     default:
       return HAL_ERROR_ASN1_PARSE_FAILED;
@@ -831,6 +832,7 @@ hal_error_t hal_asn1_decode_pkcs8_privatekeyinfo(const uint8_t **alg_oid,   size
       d += hlen;
       if (vlen == 0)
         break;
+      /* fall through */
 
     default:
       return HAL_ERROR_ASN1_PARSE_FAILED;



More information about the Commits mailing list