From 10fd955f704deb8ce0c015afbf7cf2dbb14b9eee Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Fri, 8 Jan 2021 16:35:05 +0100 Subject: [PATCH] Fix warnings generated by boost config test. --- m4/boost.m4 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/m4/boost.m4 b/m4/boost.m4 index 3e62c35932..d3d753197f 100644 --- a/m4/boost.m4 +++ b/m4/boost.m4 @@ -22,7 +22,7 @@ # along with this program. If not, see . m4_define([_BOOST_SERIAL], [m4_translit([ -# serial 33 +# serial 34 ], [# ], [])]) @@ -1549,10 +1549,11 @@ AC_CACHE_CHECK([for the flags needed to use pthreads], [boost_cv_pthread_flag], -pthreads -mthreads -lpthread --thread-safe -mt";; esac # Generate the test file. - AC_LANG_CONFTEST([AC_LANG_PROGRAM([#include ], - [pthread_t th; pthread_join(th, 0); - pthread_attr_init(0); pthread_cleanup_push(0, 0); - pthread_create(0,0,0,0); pthread_cleanup_pop(0);])]) + AC_LANG_CONFTEST([AC_LANG_PROGRAM([#include + void *f(void*){ return 0; }], + [pthread_t th; pthread_create(&th,0,f,0); pthread_join(th,0); + pthread_attr_t attr; pthread_attr_init(&attr); pthread_cleanup_push(0, 0); + pthread_cleanup_pop(0);])]) for boost_pthread_flag in '' $boost_pthread_flags; do boost_pthread_ok=false dnl Re-use the test file already generated. -- 2.47.2