]> granicus.if.org Git - graphviz/commitdiff
plugin/core: include gvc/gvc.h in gvrender_core_dot.c
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 21 Sep 2021 09:18:26 +0000 (11:18 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 26 Sep 2021 06:36:51 +0000 (08:36 +0200)
E.g. attach_attrs used in gvrender_core_dot.c is declared in
lib/gvc/gvc.h.

Removes this warning (from using CMake with MinGW):

C:/Users/magja/graphviz/plugin/core/gvrender_core_dot.c:469:6: warning: implicit declaration of function 'attach_attrs' [-Wimplicit-function-declaration]

plugin/core/gvrender_core_dot.c

index b1dcde3fed654e7109e3268e59810658d487e541..d3105371df19c496134ca3b4235c80cd7d37bf24 100644 (file)
@@ -27,6 +27,7 @@
 #include <gvc/gvplugin_device.h>
 #include <cgraph/agxbuf.h>
 #include <common/utils.h>
+#include <gvc/gvc.h>
 #include <gvc/gvio.h>
 
 #define GNEW(t)          malloc(sizeof(t))