]> granicus.if.org Git - graphviz/commitdiff
GD plugin gdgen_end_page: squash -Wswitch-default warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 20 Aug 2022 03:28:42 +0000 (20:28 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 21 Aug 2022 17:53:19 +0000 (10:53 -0700)
This switch is exhaustive.

plugin/gd/gvrender_gd.c

index fe2dafd4b851348053fadc01c9cb94ae0416f4b5..6de5868c6f2b7efad715499f954f269a6d994b7c 100644 (file)
@@ -16,7 +16,7 @@
 #include <stdint.h>
 #include <string.h>
 #include <fcntl.h>
-
+#include <cgraph/unreachable.h>
 #include <gvc/gvplugin_render.h>
 #include <gvc/gvplugin_device.h>
 #include <gvc/gvcint.h>        /* for gvc->g for agget */
@@ -217,6 +217,8 @@ static void gdgen_end_page(GVJ_t * job)
 
        case FORMAT_XBM:
            break;
+       default:
+           UNREACHABLE();
        }
        gdImageDestroy(im);
 #ifdef MYTRACE