This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/25702] feature request: generate a warning for sizeof on a pointer


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

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
If we add such a warning, IMNSHO it shouldn't be in -Wall, because sizeof on
pointer is a perfectly valid thing, which is used in huge amounts of code,
there is really nothing wrong on it.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]