summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--m4/pthreads.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/pthreads.m4 b/m4/pthreads.m4
index 65d3a9756..ecc580e9a 100644
--- a/m4/pthreads.m4
+++ b/m4/pthreads.m4
@@ -47,7 +47,7 @@ AC_DEFUN([CC_PTHREAD_FLAGS], [
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[#include <pthread.h>
- void *fakethread(void *arg) { return NULL; }
+ void *fakethread(void *arg) { (void)arg; return NULL; }
pthread_t fakevariable;
]],
[[pthread_create(&fakevariable, NULL, &fakethread, NULL);]]