This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/69970] Surprising warning with -Wnonnull-compare - 'this' compared to NULL
- From: "larsbj at gullik dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 26 Feb 2016 11:52:54 +0000
- Subject: [Bug c++/69970] Surprising warning with -Wnonnull-compare - 'this' compared to NULL
- Auto-submitted: auto-generated
- References: <bug-69970-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69970
--- Comment #3 from Lars Gullik BjÃnnes <larsbj at gullik dot net> ---
The warning might be right, but is very unhelpful.
Also with gcc 5 I get no warning (and seeming working code).
Note that this is reduced (and thus a bit strange) from a much
larger code base.