]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
configure: fix compiler warning in pthread test code
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 31 Aug 2018 09:04:36 +0000 (11:04 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 31 Aug 2018 09:04:36 +0000 (11:04 +0200)
configure

index 33aacdfad5e93131361aa21ff7db9fc7e79ccea1..486b0bcd08744021a5dc89587b84fd36a15e2495 100755 (executable)
--- a/configure
+++ b/configure
@@ -647,7 +647,7 @@ fi
 
 if [ $feat_asyncdns = "1" ] && \
   test_code 'pthread' 'pthread.h' '-pthread' '' \
-    'return pthread_create((void *)1, NULL, (void *)1, NULL);'
+    'return (int)pthread_create((void *)1, NULL, (void *)1, NULL);'
 then
   add_def FEAT_ASYNCDNS
   add_def USE_PTHREAD_ASYNCDNS