From eff7b5232768e1ec306138ce80dc852794ea3650 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Wed, 17 Jul 2024 11:26:46 +0200 Subject: [PATCH] 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 --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) 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") -- 2.47.2