]> granicus.if.org Git - graphviz/commitdiff
ast chrtoi: squash -Wswitch-default warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 24 Jul 2022 16:54:52 +0000 (09:54 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 30 Jul 2022 00:02:13 +0000 (17:02 -0700)
lib/ast/chrtoi.c

index f3af1c740109c54b316c1f0be5a9487c3a6fdb61..88bb94dc5de5f33fe24b0a46c3c61c86eb4df733 100644 (file)
@@ -34,6 +34,8 @@ int chrtoi(const char *s)
            break;
        case 0:
            return (c);
+       default: // nothing required
+           break;
        }
        c = (c << CHAR_BIT) | x;
     }