Opened 10 years ago

Closed 10 years ago

#2883 closed defect (duplicate)

sfcgal warning SET_VARSIZE(PTR, len) redefined

Reported by: robe Owned by: robe
Priority: medium Milestone: PostGIS 2.2.0
Component: sfcgal Version: master
Keywords: Cc:

Description

gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g  -I../liblwgeom -I../libpgcommon  -I/projects/geos/rel-3.5.0devw64gcc48/include -I/projects/proj/rel-4.8.0w64gcc48/include -I/projects/libxml/rel-libxml2-2.7.8w64gcc48/include/libxml2 -I/projects/CGAL/rel-sfcgal-1.0.4w64gcc48/include -DHAVE_SFCGAL -I/projects/json-c/rel-0.12w64gcc48/include -I/projects/postgresql/rel/pg9.4w64gcc48/include -I/projects/rel-libiconv-1.13.1w64gcc48/include -fPIC -I/projects/CGAL/rel-sfcgal-1.0.4w64gcc48/include -DHAVE_SFCGAL -I. -I./ -Ie:/jenkins/postgresql/rel/pg9.4w64gcc48/include/server -Ie:/jenkins/postgresql/rel/pg9.4w64gcc48/include/internal -I./src/include/port/win32 -DEXEC_BACKEND  "-Ie:/jenkins/postgresql/rel/pg9.4w64gcc48/lib/pgxs/src/makefiles/../../src/include/port/win32" -Ie:/jenkins/postgresql/rel/pg9.4w64gcc48/include/server/port/win32  -c -o lwgeom_sfcgal.o lwgeom_sfcgal.c
lwgeom_sfcgal.c:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default]
 /**********************************************************************
 ^
In file included from ../libpgcommon/lwgeom_pg.h:23:0,
                 from lwgeom_sfcgal.c:19:
../libpgcommon/pgsql_compat.h:16:0: warning: "SET_VARSIZE" redefined [enabled by default]
 #define SET_VARSIZE(var, size)   VARATT_SIZEP(var) = size
 ^
In file included from lwgeom_sfcgal.c:15:0:
e:/jenkins/postgresql/rel/pg9.4w64gcc48/include/server/postgres.h:299:0: note: this is the location of the previous definition
 #define SET_VARSIZE(PTR, len)    SET_VARSIZE_4B(PTR, len)
 ^

Change History (2)

comment:1 by robe, 10 years ago

Owner: changed from colivier to robe

comment:2 by robe, 10 years ago

Resolution: duplicate
Status: newclosed

I could have sworn I had fixed this in #2790

guess not or something changed and its broken again. Anyrate closing this one out and reopening #2790.

Note: See TracTickets for help on using tickets.