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++/71904] comparing this to NULL should give a warning by default (this == NULL)


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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
For an inline function like your example there's no warning unless the function
is used. If it's used, or not inline, it always warns.

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