]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix warnings generated by boost config test. 9932/head
authorOtto Moerbeek <otto@drijf.net>
Fri, 8 Jan 2021 15:35:05 +0000 (16:35 +0100)
committerOtto <otto.moerbeek@open-xchange.com>
Mon, 11 Jan 2021 10:59:20 +0000 (11:59 +0100)
m4/boost.m4

index 3e62c3593215961257773d52fd9dec58e5dbf3a6..d3d753197f3bbf65caec75d8f5d067bf926266f2 100644 (file)
@@ -22,7 +22,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 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.h>],
-    [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 <pthread.h>
+    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.