From: Mark Stapp Date: Fri, 19 Feb 2021 16:09:52 +0000 (-0500) Subject: build: test program needs to be warning-free X-Git-Tag: frr-8.0.1~374^2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=c00471326e1ec03850a08f74b7ce879a997940c7;p=mirror_frr.git 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 --- 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);