]> granicus.if.org Git - graphviz/commitdiff
neatogen: remove duplicate declaration of in_poly in neatosplines.c
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 1 Aug 2021 13:00:32 +0000 (15:00 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 19 Dec 2021 20:19:48 +0000 (21:19 +0100)
The in_poly function is already declared in lib/pathplan/pathutil.h.

Without this change, an upcoming commit that adds dllimport/dllexport
storage-class attribute declarations in lib/pathplan/pathutil.h would
cause the following warning for the duplicate definition:

C:\Users\magja\graphviz\lib\neatogen\neatosplines.c(27,48): warning C4273: 'in_poly': inconsistent dll linkage [C:\Users\magja\graphviz\build\lib\neatogen\neatogen.vcxproj]

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

lib/neatogen/neatosplines.c

index a005dd8c1f4984009f32661ee743f8076a798a3f..6d47dac8a02f2c5e501931f5731d149aa310b6b5 100644 (file)
@@ -23,8 +23,6 @@
 #include <ortho/ortho.h>
 #endif
 
-extern int in_poly(Ppoly_t argpoly, Ppoint_t q);
-
 
 static boolean spline_merge(node_t * n)
 {