]> granicus.if.org Git - graphviz/commitdiff
neatogen: remove duplicate declaration of drand48 in neatosplines.c
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 1 Aug 2021 11:54:56 +0000 (13:54 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Wed, 25 Aug 2021 16:18:49 +0000 (18:18 +0200)
drand48 is already declared in lib/common/utils.h.

Removes this warning:

C:/Users/magja/graphviz/lib/neatogen/neatosplines.c:20:15: warning: 'drand48' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
   20 | extern double drand48(void);
      |               ^~~~~~~

lib/neatogen/neatosplines.c

index 0bd0a44bb17e32444dbd726588e0b63258032656..1c8da34dbf74e432b51230c074b357ac5b81aa6e 100644 (file)
@@ -16,9 +16,6 @@
 #include <pathplan/pathplan.h>
 #include <pathplan/vispath.h>
 #include <neatogen/multispline.h>
-#ifndef HAVE_DRAND48
-extern double drand48(void);
-#endif
 
 #ifdef ORTHO
 #include <ortho/ortho.h>