From 8379ab70beec78b45c67cb6e7b26187abd9ab4b4 Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Fri, 28 May 2021 00:08:46 +0200 Subject: [PATCH] Build: Disable Wstringop-truncation in GCC ASAN builds These two options don't work well together and lead to false positives. Follow-up on e5cac38521c17ac184235a687cd0639f3c7e85f2 --- cmake/compiler/gcc/settings.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/compiler/gcc/settings.cmake b/cmake/compiler/gcc/settings.cmake index 14eca0310..74fbd0b3b 100644 --- a/cmake/compiler/gcc/settings.cmake +++ b/cmake/compiler/gcc/settings.cmake @@ -23,7 +23,8 @@ if(ASAN) -fno-omit-frame-pointer -fsanitize=address -fsanitize-recover=address - -fsanitize-address-use-after-scope) + -fsanitize-address-use-after-scope + -Wno-stringop-truncation) target_link_options(zm-compile-option-interface INTERFACE