diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2000-03-01 16:41:15 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2000-03-01 16:41:15 -0500 |
commit | 647639eff737551df238e26de77bee37ba75678c (patch) | |
tree | 4d013874e12240faddf721b85aba7d8aa0bb085f | |
parent | 36de3a5d10304a447901160dc4a01deb8ac3a0a9 (diff) | |
download | gcc-647639eff737551df238e26de77bee37ba75678c.zip gcc-647639eff737551df238e26de77bee37ba75678c.tar.gz gcc-647639eff737551df238e26de77bee37ba75678c.tar.bz2 |
revert last patch
From-SVN: r32286
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/typeck.c | 9 |
2 files changed, 0 insertions, 13 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index fc05b53..e42c764 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,7 +1,3 @@ -2000-03-01 Cor Veenman <C.J.Veenman@its.tudelft.nl> - - * typeck.c (convert_for_assignment): Warn about conversion to bool. - 2000-03-01 Bernd Schmidt <bernds@cygnus.co.uk> * typeck.c (maybe_warn_about_returning_address_of_local): Reorganize diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index b0f1b05..dd246af 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -6487,15 +6487,6 @@ convert_for_assignment (type, rhs, errtype, fndecl, parmnum) else cp_warning ("%s to `%T' from `%T'", errtype, type, rhstype); } - /* And warn about assigning non-BOOLEAN_TYPE to BOOLEAN_TYPE. */ - else if (coder != BOOLEAN_TYPE && codel == BOOLEAN_TYPE) - { - if (fndecl) - cp_warning ("`%T' used for argument %P of `%D'", - rhstype, parmnum, fndecl); - else - cp_warning ("%s to `%T' from `%T'", errtype, type, rhstype); - } /* And warn about assigning a negative value to an unsigned variable. */ else if (TREE_UNSIGNED (type) && codel != BOOLEAN_TYPE) |