[Bug c/90036] [8/9/10/11 Regression] false positive: directive argument is null [-Werror=format-overflow=]

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 1 18:00:06 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90036

--- Comment #10 from Martin Sebor <msebor at gcc dot gnu.org> ---
The warning for the test in comment #3 has disappeared in GCC 10 (it's still
there in GCC 9).  There are no printf calls with null arguments in the strlen
dump.

GCC 10 still issues a warning for the test in comment #8.  The predicate
analysis might be something to look into for GCC 11.


More information about the Gcc-bugs mailing list