Fix compiler issues with unused variable and printf.

This commit is contained in:
David Garske
2024-07-10 16:07:43 -07:00
parent a5c2290e40
commit 41cf8c090b

View File

@ -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;
}
@ -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 */