As explained in [0]:
Note that sanitizers tend to increase the rate of false positive
warnings, most notably those around -Wmaybe-uninitialized. We recommend
against combining -Werror and [the use of] sanitizers.
[0] https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc/Instrumentation-Options.html#index-fsanitize_003dundefined
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
--disable-use-tty-group
--disable-makeinstall-chown
--enable-all-programs
- --enable-werror
)
if [[ "$COVERAGE" == "yes" ]]; then
opts+=(--enable-asan --enable-ubsan)
CFLAGS+=(-fno-omit-frame-pointer)
CXXFLAGS+=(-fno-omit-frame-pointer)
+ else
+ opts+=(--enable-werror)
fi
if [[ "$COMPILER" == clang* && "$SANITIZE" == "yes" ]]; then