[Bug c++/111525] Inconsistent Wsign-compare in c++ with ubsan
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Sep 21 18:00:03 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111525
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>-Wno-error=array-bounds and -Wno-error=format-overflow are necessary as these warnings have known issues under ubsan.
Actually all warnings have issues with sanitizers enabled. The manual is clear
there too:
https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc/Instrumentation-Options.html#index-fsanitize_003daddress
```
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.
```
So I think --disable-werror should be used for configure option instead ...
More information about the Gcc-bugs
mailing list