From d9fe9b9f1d6b5ffdee1af74da8af003d752766e8 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Mon, 15 Jun 2009 13:21:37 +0000 Subject: [PATCH] Fixed conversion test. Again. --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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]) -- 2.30.2