OSDN Git Service

2007-01-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Jan 2007 22:29:11 +0000 (22:29 +0000)
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Jan 2007 22:29:11 +0000 (22:29 +0000)
commita07d3cd8c7dd227be3d6637d1eb3081ce2bc5614
tree6ab5f599b4f4444b77112bd54a7ebdc103ca2f51
parent4340eeb435c36d0cccc2c7a32133385d4531e8bc
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121361 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/typeck.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/null4.C [new file with mode: 0644]