typeck.c (check_for_casting_away_constness): Use 1 single argument, the type of cast...
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Mon, 25 Feb 2008 01:39:14 +0000 (01:39 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Mon, 25 Feb 2008 01:39:14 +0000 (01:39 +0000)
commit86b7b98bed5f98614829dda72e7d2b69b90cf396
tree4ba9990311686c3b71c6b79b6aecf6c760b8c610
parent55092ebf6e03abd80d72cd10937f9cfa9d4de64e
typeck.c (check_for_casting_away_constness): Use 1 single argument, the type of cast, to decide what diagnostics generate.

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.

From-SVN: r132609
gcc/cp/ChangeLog
gcc/cp/typeck.c