[Bug libfortran/78793] New: list_read.c: 7 * possible unintended fallthrough ?

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Tue Dec 13 11:50:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78793

            Bug ID: 78793
           Summary: list_read.c: 7 * possible unintended fallthrough ?
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

I just tried a build of trunk fortran and got this:

1.

trunk/libgfortran/io/list_read.c:975:10: warning: this statement may fall
through [-Wimplicit-fallthrough=]

Source code is

    case '!':
      if (!dtp->u.p.namelist_mode)
        goto bad_integer;

    CASE_SEPARATORS:        /* Single null.  */

Suggest either document the fallthrough or add a possible missing break.

2.

../../../trunk/libgfortran/io/list_read.c:1033:10: warning: this statement may
fall through [-Wimplicit-fallthrough=]
../../../trunk/libgfortran/io/list_read.c:852:10: warning: this statement may
fall through [-Wimplicit-fallthrough=]
../../../trunk/libgfortran/io/list_read.c:1646:10: warning: this statement may
fall through [-Wimplicit-fallthrough=]
../../../trunk/libgfortran/io/list_read.c:1705:7: warning: this statement may
fall through [-Wimplicit-fallthrough=]
../../../trunk/libgfortran/io/list_read.c:1524:10: warning: this statement may
fall through [-Wimplicit-fallthrough=]
../../../trunk/libgfortran/io/list_read.c:1401:7: warning: this statement may
fall through [-Wimplicit-fallthrough=]

Duplicates.


More information about the Gcc-bugs mailing list