]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-common.c
re PR c/18715 (warning: "enumeration value not handled in switch" for '...' ranges)
authorAndrew Pinski <pinskia@physics.uc.edu>
Mon, 22 Aug 2005 16:21:18 +0000 (16:21 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Mon, 22 Aug 2005 16:21:18 +0000 (09:21 -0700)
commit201ae393e61498aec3afc6a3d426aa2f6577aae0
treeca2f57c6cb033f2c3558de1a8123530e483e4ab5
parentc85ba4fb34b8dc43ac29ddb7009863b2cb03565d
re PR c/18715 (warning: "enumeration value not handled in switch" for '...' ranges)

2005-08-22  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c/18715
        * c-common.c (c_do_switch_warnings): Look for a node where the enum's
        value is inbetween the range if we did not find an exact match.

2005-08-22  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c/18175
        * gcc.dg/switch-warn-3.c: New test.

From-SVN: r103343
gcc/ChangeLog
gcc/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/switch-warn-3.c [new file with mode: 0644]