mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
static analysis fix on non default build and g++ warning
This commit is contained in:
@@ -832,7 +832,6 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
|
|||||||
(void)updateKeysIVs;
|
(void)updateKeysIVs;
|
||||||
(void)postHandAuth;
|
(void)postHandAuth;
|
||||||
(void)mcastID;
|
(void)mcastID;
|
||||||
(void)useX25519;
|
|
||||||
(void)loadCertKeyIntoSSLObj;
|
(void)loadCertKeyIntoSSLObj;
|
||||||
|
|
||||||
#ifdef WOLFSSL_TIRTOS
|
#ifdef WOLFSSL_TIRTOS
|
||||||
@@ -2052,6 +2051,7 @@ exit:
|
|||||||
(void) useNtruKey;
|
(void) useNtruKey;
|
||||||
(void) ourDhParam;
|
(void) ourDhParam;
|
||||||
(void) ourCert;
|
(void) ourCert;
|
||||||
|
(void) useX25519;
|
||||||
#ifndef WOLFSSL_TIRTOS
|
#ifndef WOLFSSL_TIRTOS
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
@@ -8779,7 +8779,7 @@ int wc_AesGcmDecrypt(Aes* aes, byte* out, const byte* in, word32 sz,
|
|||||||
const byte* authIn, word32 authInSz)
|
const byte* authIn, word32 authInSz)
|
||||||
{
|
{
|
||||||
#ifdef WOLFSSL_AESNI
|
#ifdef WOLFSSL_AESNI
|
||||||
int res;
|
int res = AES_GCM_AUTH_E;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* argument checks */
|
/* argument checks */
|
||||||
|
@@ -4982,7 +4982,7 @@ int GetAsnTimeString(void* currTime, byte* buf, word32 len)
|
|||||||
if (buf == NULL || len == 0)
|
if (buf == NULL || len == 0)
|
||||||
return BAD_FUNC_ARG;
|
return BAD_FUNC_ARG;
|
||||||
|
|
||||||
ts = (struct tm *)XGMTIME(currTime, tmpTime);
|
ts = (struct tm *)XGMTIME((time_t*)currTime, tmpTime);
|
||||||
if (ts == NULL){
|
if (ts == NULL){
|
||||||
WOLFSSL_MSG("failed to get time data.");
|
WOLFSSL_MSG("failed to get time data.");
|
||||||
return ASN_TIME_E;
|
return ASN_TIME_E;
|
||||||
|
Reference in New Issue
Block a user