[Bug c/57627] -Wsizeof-pointer-memaccess should make an exception for character types
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri May 25 21:14:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57627
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Status|UNCONFIRMED |NEW
Last reconfirmed| |2018-05-25
CC| |msebor at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
I think I agree that it's less likely that sizeof (char) or even 1 is intended
in f2() than sizeof (char *). Confirmed.
More information about the Gcc-bugs
mailing list