From d59611bd9636bef49ff6b7c5191de087cc1f20b2 Mon Sep 17 00:00:00 2001 From: Oleksandr Ivantsiv Date: Fri, 23 Feb 2024 18:53:22 +0000 Subject: [PATCH] [asan] Disable the "maybe-uninitialized" warning when compiled with ASAN enabled. --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 5efe0a67bd..231f1e1c58 100644 --- a/configure.ac +++ b/configure.ac @@ -133,6 +133,7 @@ if test "x$asan_enabled" = "xtrue"; then CFLAGS_ASAN+=" -fsanitize=address" CFLAGS_ASAN+=" -DASAN_ENABLED" CFLAGS_ASAN+=" -ggdb -fno-omit-frame-pointer -U_FORTIFY_SOURCE" + CFLAGS_ASAN+=" -Wno-maybe-uninitialized" AC_SUBST(CFLAGS_ASAN) LDFLAGS_ASAN+=" -lasan"