]> granicus.if.org Git - graphviz/commitdiff
gml2gv: silence a -Wimplicit-fallthrough warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 12 May 2022 04:03:10 +0000 (21:03 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 14 May 2022 19:40:58 +0000 (12:40 -0700)
All paths in this case end in a call to `exit`. But the compiler is apparently
unable to determine this, so use an explicit `break` to suppress a false
positive warning.

cmd/tools/gml2gv.c

index fc46406dfb05ea114cd8860c15c7645a58374461..cb94b65a0a118aaba2999d94429630e6804e058c 100644 (file)
@@ -120,6 +120,7 @@ static void initargs(int argc, char **argv)
                        optopt);
                usage(1);
            }
+           break;
        default:
            UNREACHABLE();
        }