From c00471326e1ec03850a08f74b7ce879a997940c7 Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Fri, 19 Feb 2021 11:09:52 -0500 Subject: [PATCH] build: test program needs to be warning-free One of the configure-time test programs produces a warning with gcc 9 (at least), so it fails if -Werror is enabled. Fix that. Signed-off-by: Mark Stapp --- m4/ax_pthread.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/ax_pthread.m4 b/m4/ax_pthread.m4 index d383ad5c6..b7872d987 100644 --- a/m4/ax_pthread.m4 +++ b/m4/ax_pthread.m4 @@ -219,7 +219,7 @@ for flag in $ax_pthread_flags; do # functions on Solaris that doesn't have a non-functional libc stub. # We try pthread_create on general principles. AC_LINK_IFELSE([AC_LANG_PROGRAM([#include - static void routine(void *a) { a = 0; } + static void routine(void *a) { if (a) a = 0; } static void *start_routine(void *a) { return a; }], [pthread_t th; pthread_attr_t attr; pthread_create(&th, 0, start_routine, 0); -- 2.39.5