static analysis fix on non default build and g++ warning

This commit is contained in:
Jacob Barthelmeh
2018-11-07 14:50:07 -07:00
parent 6e4ab91ccf
commit 2468a19c82
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

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

View File

@@ -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;