OSDN Git Service

2008-02-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Feb 2008 01:39:14 +0000 (01:39 +0000)
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Feb 2008 01:39:14 +0000 (01:39 +0000)
commit868ff017b3fdbd74940810d2a18d6ec49fa5cc32
tree4ba9990311686c3b71c6b79b6aecf6c760b8c610
parent1a47935025c98aa4ab636c7cb7810ecd45dade4e
2008-02-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

* typeck.c (check_for_casting_away_constness): Use 1 single
argument, the type of cast, to decide what diagnostics generate.
(build_static_cast_1): Remove unused code. Update call to
check_for_casting_away_constness.
(build_reinterpret_cast_1): Update call to
check_for_casting_away_constness.
(build_const_cast_1): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132609 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/typeck.c