docs: document sanitizers can trigger warnings
PR sanitizer/107298 gcc/ChangeLog: * doc/invoke.texi: Document sanitizers can trigger warnings.
This commit is contained in:
parent
bd891730b2
commit
3f9c071324
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue