configure: fix test code to be compilable with -Werror

This commit is contained in:
Miroslav Lichvar 2014-05-30 16:12:02 +02:00
parent 2ed9853bcc
commit b03c7581f2

4
configure vendored
View file

@ -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);'