From: Philippe Antoine Date: Wed, 17 Jul 2024 09:26:46 +0000 (+0200) Subject: build: Wimplicit-int-float-conversion checked with --enable-warnings X-Git-Tag: suricata-8.0.0-beta1~992 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11524%2Fhead;p=thirdparty%2Fsuricata.git build: Wimplicit-int-float-conversion checked with --enable-warnings When configure is used with --enable-warnings, we try to add most warning flags that should pass. This commits adds the warning Wimplicit-int-float-conversion --- diff --git a/configure.ac b/configure.ac index 433ed54590..15437be568 100644 --- a/configure.ac +++ b/configure.ac @@ -2302,6 +2302,15 @@ fi AC_MSG_RESULT([yes]), [AC_MSG_RESULT([no]) CFLAGS="$OCFLAGS"]) + # check if our compiler supports -Wimplicit-int-float-conversion + AC_MSG_CHECKING(for -Wimplicit-int-float-conversion) + OCFLAGS=$CFLAGS + CFLAGS="$CFLAGS -Wimplicit-int-float-conversion" + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], + [[]])], + AC_MSG_RESULT([yes]), + [AC_MSG_RESULT([no]) + CFLAGS="$OCFLAGS"]) ]) AC_CHECK_LIB(fuzzpcap, FPC_IsFuzzPacketCapture, HAS_FUZZPCAP="yes")