]> granicus.if.org Git - graphviz/commitdiff
squash some -Wimplicit-fallthrough compiler warnings
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 11 Feb 2021 05:33:35 +0000 (21:33 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 17 Feb 2021 15:38:55 +0000 (07:38 -0800)
lib/common/shapes.c
lib/sfio/sftable.c
lib/sfio/sfvprintf.c

index 1d1261f235bc13844734e91ead001ff6e9b63885..01ec739f41bf9b5b0c9ca9ab552dcff4b02687a7 100644 (file)
@@ -3340,7 +3340,7 @@ static field_t *parse_reclbl(node_t * n, int LR, int flag, char *text)
                    reclblp++;
                }
            }
-           /* falling through ... */
+           /* fall through */
        default:
          dotext:
            if ((mode & HASTABLE) && *reclblp != ' ')
index b9c35455e0b456da5aa2e721b8cde7b4085d57c6..14249708e4a442fd4561d57f3b677d45282cab38 100644 (file)
@@ -152,7 +152,7 @@ static Fmtpos_t *sffmtpos(Sfio_t * f, const char *form, va_list args,
            } else if (*form != '*')
                goto loop_flags;
            else
-               form += 1;      /* drop through below */
+               form += 1;      /* fall through */
 
        case '*':
            form = sffmtint(form, &n);
index ed03d3e366d5a6deb7afafb111dec37455c82492..16def32402c663c49e958f90a9e4108e59840fac 100644 (file)
@@ -245,7 +245,7 @@ int sfvprintf(Sfio_t * f, const char *form, va_list args)
            } else if (*form != '*')
                goto loop_flags;
          do_star:
-           form += 1;          /* fall through for '*' */
+           form += 1;          /* fall through */
        case '*':
            form = (*_Sffmtintf) (form, &n);
            if (*form == '$') {