From: Otto Moerbeek Date: Fri, 8 Jan 2021 15:35:05 +0000 (+0100) Subject: Fix warnings generated by boost config test. X-Git-Tag: rec-4.5.0-alpha1~16^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F9932%2Fhead;p=thirdparty%2Fpdns.git Fix warnings generated by boost config test. --- 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.