From: Magnus Jacobsson Date: Sun, 1 Aug 2021 13:00:32 +0000 (+0200) Subject: neatogen: remove duplicate declaration of in_poly in neatosplines.c X-Git-Tag: 3.0.0~121^2~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f2f750afd82ba81d1c0a46187c62b93823be404a;p=graphviz neatogen: remove duplicate declaration of in_poly in neatosplines.c 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. --- diff --git a/lib/neatogen/neatosplines.c b/lib/neatogen/neatosplines.c index a005dd8c1..6d47dac8a 100644 --- a/lib/neatogen/neatosplines.c +++ b/lib/neatogen/neatosplines.c @@ -23,8 +23,6 @@ #include #endif -extern int in_poly(Ppoly_t argpoly, Ppoint_t q); - static boolean spline_merge(node_t * n) {