diff --git a/wolfcrypt/src/wc_port.c b/wolfcrypt/src/wc_port.c index 559fea1e4..f5c78cb38 100755 --- a/wolfcrypt/src/wc_port.c +++ b/wolfcrypt/src/wc_port.c @@ -329,7 +329,7 @@ void wc_ReadDirClose(ReadDirCtx* ctx) #endif /* !NO_FILESYSTEM && !NO_WOLFSSL_DIR */ -wolfSSL_Mutex* wc_InitAndAllocMutex() +wolfSSL_Mutex* wc_InitAndAllocMutex(void) { wolfSSL_Mutex* m = (wolfSSL_Mutex*) XMALLOC(sizeof(wolfSSL_Mutex), NULL, DYNAMIC_TYPE_MUTEX); diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index c445428ab..be05ec386 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -908,7 +908,7 @@ int wolfcrypt_test(void* args) #endif /* NO_MAIN_DRIVER */ -int error_test() +int error_test(void) { const char* errStr; char out[WOLFSSL_MAX_ERROR_SZ]; @@ -971,7 +971,7 @@ int error_test() } #if !defined(NO_CODING) && defined(WOLFSSL_BASE64_ENCODE) -int base64_test() +int base64_test(void) { int ret; const byte good[] = "A+Gd\0\0\0"; @@ -1068,7 +1068,7 @@ int base64_test() #endif #ifndef NO_ASN -int asn_test() +int asn_test(void) { #ifndef NO_ASN_TIME #ifdef WORD64_AVAILABLE @@ -11234,7 +11234,7 @@ done: #endif /* HAVE_ECC_ENCRYPT */ #ifdef USE_CERT_BUFFERS_256 -int ecc_test_buffers() { +int ecc_test_buffers(void) { size_t bytes; ecc_key cliKey; ecc_key servKey; @@ -13633,7 +13633,7 @@ int logging_test() } #endif -int mutex_test() +int mutex_test(void) { #ifdef WOLFSSL_PTHREADS wolfSSL_Mutex m; @@ -13685,7 +13685,7 @@ static void *my_Realloc_cb(void *ptr, size_t size) return realloc(ptr, size); } -int memcb_test() +int memcb_test(void) { int ret = 0; byte* b = NULL;