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

@@ -445,6 +445,9 @@ int Renesas_cmn_usable(const struct WOLFSSL* ssl, byte session_key_generated)
ret = wc_fspsm_usable(ssl, session_key_generated); ret = wc_fspsm_usable(ssl, session_key_generated);
#endif #endif
(void)ssl;
(void)session_key_generated;
return ret; return ret;
} }
@@ -492,7 +495,7 @@ int wc_CryptoCb_CryptInitRenesasCmn(struct WOLFSSL* ssl, void* ctx)
|| ssl == NULL || ssl == NULL
#endif #endif
) { ) {
printf("Invalid devId\n"); WOLFSSL_MSG("Invalid devId\n");
return INVALID_DEVID; return INVALID_DEVID;
} }
/* need exclusive control because of static variable */ /* need exclusive control because of static variable */