]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
docs: document sanitizers can trigger warnings
authorMartin Liska <mliska@suse.cz>
Wed, 26 Oct 2022 11:07:57 +0000 (13:07 +0200)
committerMartin Liska <mliska@suse.cz>
Fri, 28 Oct 2022 07:16:24 +0000 (09:16 +0200)
PR sanitizer/107298

gcc/ChangeLog:

* doc/invoke.texi: Document sanitizers can trigger warnings.

gcc/doc/invoke.texi

index 9f0e5460861b08757176bef34033a550cd88a953..c0ca76544e8e3a9bd9904c49ee3accc0780c8397 100644 (file)
@@ -16509,6 +16509,10 @@ by this option.
 
 @end table
 
+Note the enabled sanitizer options tend to increase a false-positive rate
+of selected warnings, most notably @option{-Wmaybe-uninitialized}.
+And thus we recommend to disable @option{-Werror}.
+
 While @option{-ftrapv} causes traps for signed overflows to be emitted,
 @option{-fsanitize=undefined} gives a diagnostic message.
 This currently works only for the C family of languages.