c-warn.c (match_case_to_enum_1): Don't warn about enums with no enumerators.
authorJason Merrill <jason@redhat.com>
Fri, 19 May 2017 19:31:52 +0000 (15:31 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 19 May 2017 19:31:52 +0000 (15:31 -0400)
commit1ff7be5ac8a85aab5580def9cdfaaabe6cedb3c7
tree6aba71448217575c21bae2fa509875531a1aa640
parent2944f36d0290654a3783c62e08347aebbce19cf4
c-warn.c (match_case_to_enum_1): Don't warn about enums with no enumerators.

* c-warn.c (match_case_to_enum_1): Don't warn about enums with no
enumerators.

From-SVN: r248303
gcc/c-family/ChangeLog
gcc/c-family/c-warn.c
gcc/testsuite/g++.dg/cpp1z/byte2.C [new file with mode: 0644]