From: Monty Taylor Date: Mon, 15 Jun 2009 13:21:37 +0000 (+0000) Subject: Fixed conversion test. Again. X-Git-Tag: 0.31~14^2~7^2~1^2~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=d9fe9b9f1d6b5ffdee1af74da8af003d752766e8;p=awesomized%2Flibmemcached Fixed conversion test. Again. --- diff --git a/configure.ac b/configure.ac index 46f23555..80b63da7 100644 --- a/configure.ac +++ b/configure.ac @@ -224,14 +224,14 @@ then AC_CACHE_CHECK([whether it is safe to use -Wconversion with htons], [ac_cv_safe_to_use_Wconversion_], [save_CFLAGS="$CFLAGS" - CFLAGS="${CC_WARNINGS} ${CFLAGS}" + CFLAGS="-Wconversion -Werror ${CFLAGS}" AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[ +#include #include ]],[[ -size_t source_port= 80; -uint16_t x= htons((uint16_t)source_port); +uint16_t x= htons(80); ]])], [ac_cv_safe_to_use_Wconversion_=yes], [ac_cv_safe_to_use_Wconversion_=no])