Skip to content

Commit

Permalink
Fix compiler issues with unused variable and printf.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarske committed Jul 10, 2024
1 parent a5c2290 commit 41cf8c0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions wolfcrypt/src/port/Renesas/renesas_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,10 +441,13 @@ int Renesas_cmn_usable(const struct WOLFSSL* ssl, byte session_key_generated)
#if defined(WOLFSSL_RENESAS_TSIP_TLS)
ret = tsip_usable(ssl, session_key_generated);
#elif defined(WOLFSSL_RENESAS_FSPSM_TLS) ||\
defined(WOLFSSL_RENESAS_FSPSM_CRYPTONLY)
defined(WOLFSSL_RENESAS_FSPSM_CRYPTONLY)
ret = wc_fspsm_usable(ssl, session_key_generated);
#endif

(void)ssl;
(void)session_key_generated;

return ret;
}

Expand Down Expand Up @@ -492,7 +495,7 @@ int wc_CryptoCb_CryptInitRenesasCmn(struct WOLFSSL* ssl, void* ctx)
|| ssl == NULL
#endif
) {
printf("Invalid devId\n");
WOLFSSL_MSG("Invalid devId\n");
return INVALID_DEVID;
}
/* need exclusive control because of static variable */
Expand Down

0 comments on commit 41cf8c0

Please sign in to comment.