From e76d12f9328cf1bb732b104d32364cd7a5590c08 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Fri, 3 Mar 2023 22:01:52 -0600 Subject: [PATCH] src/ssl.c: fix a couple suppressions to use C comment syntax, for C89 goodness. --- src/ssl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index e64c2fd9d..68ed493ce 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -10728,7 +10728,7 @@ WOLFSSL_EVP_PKEY* wolfSSL_d2i_PrivateKey_id(int type, WOLFSSL_EVP_PKEY** out, } #endif /* WOLF_PRIVATE_KEY_ID */ -#ifndef NO_CERTS // NOLINT(readability-redundant-preprocessor) +#ifndef NO_CERTS /* // NOLINT(readability-redundant-preprocessor) */ #ifndef NO_CHECK_PRIVATE_KEY /* Check private against public in certificate for match @@ -40933,7 +40933,8 @@ int wolfSSL_i2d_PKCS7(PKCS7 *p7, unsigned char **out) WOLFSSL_MSG("wc_InitRng error"); return WOLFSSL_FAILURE; } - p7->rng = &rng; // cppcheck-suppress autoVariables + p7->rng = &rng; /* cppcheck-suppress autoVariables + */ } if ((len = wc_PKCS7_EncodeSignedData(p7, NULL, 0)) < 0) {