Add cast to function pointer to remove warning
This commit is contained in:
parent
3b027d2528
commit
2c556f093a
|
@ -266,7 +266,7 @@ void openblas_fork_handler()
|
||||||
// implementation of OpenMP.
|
// implementation of OpenMP.
|
||||||
#if !defined(OS_WINDOWS) && defined(SMP_SERVER)
|
#if !defined(OS_WINDOWS) && defined(SMP_SERVER)
|
||||||
int err;
|
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)
|
if(err != 0)
|
||||||
openblas_warning(0, "OpenBLAS Warning ... cannot install fork handler. You may meet hang after fork.\n");
|
openblas_warning(0, "OpenBLAS Warning ... cannot install fork handler. You may meet hang after fork.\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue