Skip to content

Commit 42b86b6

Browse files
committed
fix unused variable warnings when HAVE_FIPS not defined
1 parent da5dc9d commit 42b86b6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

native/com_wolfssl_WolfSSL.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,10 @@ void NativeFIPSErrorCallback(const int ok, const int err,
798798
(*jenv)->ThrowNew(jenv, excClass,
799799
"Object reference invalid in NativeFIPSErrorCallback");
800800
}
801+
#else
802+
(void)ok;
803+
(void)err;
804+
(void)hash;
801805
#endif
802806
}
803807

@@ -847,6 +851,8 @@ JNIEXPORT jstring JNICALL Java_com_wolfssl_WolfSSL_getWolfCryptFIPSCoreHash
847851
#ifdef HAVE_FIPS
848852
return (*jenv)->NewStringUTF(jenv, wolfCrypt_GetCoreHash_fips());
849853
#else
854+
(void)jenv;
855+
(void)jcl;
850856
return NULL;
851857
#endif
852858
}

0 commit comments

Comments
 (0)