c-common.c (shorten_compare): Don't -Wtype-limits if the non-constant operand comes...
authorJason Merrill <jason@redhat.com>
Thu, 19 Nov 2015 04:26:48 +0000 (23:26 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 19 Nov 2015 04:26:48 +0000 (23:26 -0500)
commitd0eccfcdc30257a23ce82041a035626350fa421f
tree88e3a4c343c0451d6503bcf8bbc10d367c847071
parent7d7e7aca3bcded9bccc3ebb4c020287ff21ef102
c-common.c (shorten_compare): Don't -Wtype-limits if the non-constant operand comes from a macro.

* c-common.c (shorten_compare): Don't -Wtype-limits if the
non-constant operand comes from a macro.

From-SVN: r230589
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/g++.dg/warn/Wtype-limits2.C [new file with mode: 0644]