From 2c556f093abd7a7d5a894c6e155d7a9234a1152a Mon Sep 17 00:00:00 2001 From: Olivier Grisel Date: Tue, 25 Feb 2014 10:42:39 +0100 Subject: [PATCH] Add cast to function pointer to remove warning --- driver/others/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/others/memory.c b/driver/others/memory.c index e823329a5..24a92034d 100644 --- a/driver/others/memory.c +++ b/driver/others/memory.c @@ -266,7 +266,7 @@ void openblas_fork_handler() // implementation of OpenMP. #if !defined(OS_WINDOWS) && defined(SMP_SERVER) int err; - err = pthread_atfork (BLASFUNC(blas_thread_shutdown), NULL, NULL); + err = pthread_atfork ((void (*)(void)) BLASFUNC(blas_thread_shutdown), NULL, NULL); if(err != 0) openblas_warning(0, "OpenBLAS Warning ... cannot install fork handler. You may meet hang after fork.\n"); #endif