Skip to content

Commit 200f309

Browse files
authored
Merge pull request #7587 from douzzer/20240524-pq-clang-tidy
20240524-pq-clang-tidy
2 parents 021b573 + 8de00d7 commit 200f309

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

wolfcrypt/src/dilithium.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ static int parse_private_key(const byte* priv, word32 privSz,
489489
/* At this point, it is still a PKCS8 private key. */
490490
if ((ret = ToTraditionalInline(priv, &idx, privSz)) < 0) {
491491
/* ignore error, did not have PKCS8 header */
492+
(void)ret;
492493
}
493494

494495
/* Now it is a octet_string(concat(priv,pub)) */

wolfcrypt/src/falcon.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ static int parse_private_key(const byte* priv, word32 privSz,
470470
/* At this point, it is still a PKCS8 private key. */
471471
if ((ret = ToTraditionalInline(priv, &idx, privSz)) < 0) {
472472
/* ignore error, did not have PKCS8 header */
473+
(void)ret;
473474
}
474475

475476
/* Now it is a octet_string(concat(priv,pub)) */

wolfcrypt/src/sphincs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ static int parse_private_key(const byte* priv, word32 privSz,
432432
/* At this point, it is still a PKCS8 private key. */
433433
if ((ret = ToTraditionalInline(priv, &idx, privSz)) < 0) {
434434
/* ignore error, did not have PKCS8 header */
435+
(void)ret;
435436
}
436437

437438
/* Now it is a octet_string(concat(priv,pub)) */

0 commit comments

Comments
 (0)