]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
configure: fix test code to be compilable with -Werror
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 30 May 2014 14:12:02 +0000 (16:12 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 2 Jun 2014 14:46:53 +0000 (16:46 +0200)
configure

index 896f30cd288f523e7de43d1d4865f0914fc03677..755880c147a50fd8dc6e6eeb1a0285b15dd01952 100755 (executable)
--- a/configure
+++ b/configure
@@ -426,7 +426,7 @@ fi
 
 if [ $feat_asyncdns = "1" ] && \
   test_code 'pthread' 'pthread.h' '-pthread' '' \
-    'return pthread_create(NULL, NULL, NULL, NULL);'
+    'return pthread_create((void *)1, NULL, (void *)1, NULL);'
 then
   add_def FEAT_ASYNCDNS
   add_def USE_PTHREAD_ASYNCDNS
@@ -448,7 +448,7 @@ fi
 
 if [ "x$timepps_h" != "x" ] && \
   test_code 'PPSAPI' "string.h $timepps_h" '' '' '
-    pps_handle_t h;
+    pps_handle_t h = 0;
     pps_info_t i;
     struct timespec ts;
     return time_pps_fetch(h, PPS_TSFMT_TSPEC, &i, &ts);'