aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-range.h
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2021-06-08 17:48:49 -0400
committerJason Merrill <jason@redhat.com>2021-06-08 20:42:31 -0400
commit087253b9951766cbd93286b804ebb1ab59197aa8 (patch)
treef1c8f164f84197ece3884a4932f65821d6da55fb /gcc/gimple-range.h
parentc60387214593445d1514bf7852f27f4523458cda (diff)
downloadgcc-087253b9951766cbd93286b804ebb1ab59197aa8.zip
gcc-087253b9951766cbd93286b804ebb1ab59197aa8.tar.gz
gcc-087253b9951766cbd93286b804ebb1ab59197aa8.tar.bz2
c++: remove redundant warning [PR100879]
Before my r277864, build_new_op promoted enums to int before passing them on to cp_build_binary_op; after that commit, it doesn't, so warn_for_sign_compare sees the enum operands and gives a redundant warning. This warning dates back to 1995, and seems to have been dead code for a long time--likely since build_new_op was added in 1997--so let's just remove it. PR c++/100879 gcc/c-family/ChangeLog: * c-warn.c (warn_for_sign_compare): Remove C++ enum mismatch warning. gcc/testsuite/ChangeLog: * g++.dg/diagnostic/enum3.C: New test.
Diffstat (limited to 'gcc/gimple-range.h')
0 files changed, 0 insertions, 0 deletions