From 9c995f0c83892ae9a4f6657c1c4673164e803169 Mon Sep 17 00:00:00 2001 From: Oleksandr Ivantsiv Date: Wed, 28 Feb 2024 12:49:56 -0800 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"