summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2021-02-19 17:09:52 +0100
committerMark Stapp <mjs@voltanet.io>2021-03-22 13:41:14 +0100
commitc00471326e1ec03850a08f74b7ce879a997940c7 (patch)
tree3b2f1afa2fddda61fddd8cbed5038dde7dd49618 /m4
parentMerge pull request #8301 from donaldsharp/isis_spacing (diff)
downloadfrr-c00471326e1ec03850a08f74b7ce879a997940c7.tar.xz
frr-c00471326e1ec03850a08f74b7ce879a997940c7.zip
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 <mjs@voltanet.io>
Diffstat (limited to 'm4')
-rw-r--r--m4/ax_pthread.m42
1 files changed, 1 insertions, 1 deletions
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 <pthread.h>
- 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);