diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2021-03-22 19:31:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-22 19:31:05 +0100 |
| commit | 53ab0eacab29eac23285db12ced4d43f079912e3 (patch) | |
| tree | 09403eef5aec18184b6bfd29fa6d303c451a6f89 | |
| parent | 7bf7917cdec9407db3666147406aec75ae6828ed (diff) | |
| parent | c00471326e1ec03850a08f74b7ce879a997940c7 (diff) | |
Merge pull request #8115 from mjstapp/fix_ax_pthread
build: test program needs to be warning-free
| -rw-r--r-- | m4/ax_pthread.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/ax_pthread.m4 b/m4/ax_pthread.m4 index d383ad5c6d..b7872d9870 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); |
