diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-12-11 15:45:32 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-12-11 15:45:32 +0000 |
commit | 20b437989991dba522c021966d636eea855805b2 (patch) | |
tree | c1b865cb590711a15484cc3966a0244298f223b9 /gcc/cp/typeck.c | |
parent | 77a6e2227b960458630b328c2f6df8bd6e3e5e34 (diff) | |
download | gcc-20b437989991dba522c021966d636eea855805b2.tar.gz |
2014-12-11 Paolo Carlini <paolo.carlini@oracle.com>
* typeck.c (maybe_warn_about_useless_cast): Remove unnecessary
conditional.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218629 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/typeck.c')
-rw-r--r-- | gcc/cp/typeck.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index 2abff6bdb76..dd60d989105 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -6363,12 +6363,6 @@ maybe_warn_about_useless_cast (tree type, tree expr, tsubst_flags_t complain) if (warn_useless_cast && complain & tf_warning) { - /* In C++14 mode, this interacts badly with force_paren_expr. And it - isn't necessary in any mode, because the code below handles - glvalues properly. For 4.9, just skip it in C++14 mode. */ - if (cxx_dialect < cxx14 && REFERENCE_REF_P (expr)) - expr = TREE_OPERAND (expr, 0); - if ((TREE_CODE (type) == REFERENCE_TYPE && (TYPE_REF_IS_RVALUE (type) ? xvalue_p (expr) : real_lvalue_p (expr)) |