From 95f4f7e905c677be8159df042987503c7d341634 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 14 Jan 2023 15:32:18 -0800 Subject: [PATCH] graphml2gv initargs: squash -Wswitch-default warning The default case is unreachable due to the preceding `getopt` call. --- cmd/tools/graphml2gv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/tools/graphml2gv.c b/cmd/tools/graphml2gv.c index ed34cd9b7..7b11ef806 100644 --- a/cmd/tools/graphml2gv.c +++ b/cmd/tools/graphml2gv.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -465,6 +466,9 @@ static void initargs(int argc, char **argv) optopt); usage(1); } + break; + default: + UNREACHABLE(); } } -- 2.40.0