From 6dc54e8642dfd48096cf52c585c14f7ebe098486 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 30 May 2023 21:48:09 +0200 Subject: Suppress maybe-uninitialised warning due to false positives --- configure.ac | 1 + 1 file changed, 1 insertion(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 926724c..23ecb80 100644 --- a/configure.ac +++ b/configure.ac @@ -93,6 +93,7 @@ AS_IF([test "x$have_curl" = "xno"], [AC_MSG_WARN([cURL not found, timestamps will not work])]) AC_LANG_PUSH([C++]) +AX_CHECK_COMPILE_FLAG([-Wno-maybe-uninitialized], [CXXFLAGS="$CXXFLAGS -Wno-maybe-uninitialized"], [], ["-Werror"]) AX_CHECK_COMPILE_FLAG([-Wduplicated-cond], [CXXFLAGS="$CXXFLAGS -Wduplicated-cond"], [], ["-Werror"]) AX_CHECK_COMPILE_FLAG([-Wduplicated-branches], [CXXFLAGS="$CXXFLAGS -Wduplicated-branches"], [], ["-Werror"]) AX_CHECK_COMPILE_FLAG([-Wlogical-op], [CXXFLAGS="$CXXFLAGS -Wlogical-op"], [], ["-Werror"]) -- cgit v1.2.3