]> granicus.if.org Git - graphviz/commitdiff
gv_postprocess: squash a -Wswitch-default warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 24 Dec 2021 16:35:18 +0000 (08:35 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 25 Dec 2021 19:40:23 +0000 (11:40 -0800)
lib/common/postproc.c

index 2de11d245bb7653e6f284258ac15bfab102b7e88..a8a26bfacdcd50e891d4fd6067cb65b7b9981489 100644 (file)
@@ -8,7 +8,7 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-
+#include <cgraph/unreachable.h>
 #include <common/render.h>
 #include <label/xlabels.h>
 #include <stdbool.h>
@@ -669,6 +669,8 @@ void gv_postprocess(Agraph_t * g, int allowTranslation)
        case RANKDIR_RL:
            Offset = pointfof(GD_bb(g).LL.y, GD_bb(g).LL.x);
            break;
+       default:
+           UNREACHABLE();
        }
        translate_drawing(g);
     }