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++/24745] unpleasant warning for "if (NULL)"



------- Comment #8 from manu at gcc dot gnu dot org  2007-01-30 22:29 -------
Subject: Bug 24745

Author: manu
Date: Tue Jan 30 22:29:11 2007
New Revision: 121361

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121361
Log:
2007-01-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

        PR c++/24745
        * doc/invoke.texi (Wpointer-arith): Document warning.

cp/
        * typeck.c (build_binary_op): Fix logic for warning. Move warning
        to -Wpointer-arith.
        * call.c (convert_like_real): Don't warn when converting to
        boolean type.

testsuite/
        * g++.dg/warn/null4.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/warn/null4.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/doc/invoke.texi
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24745


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