Opened 10 years ago

Closed 9 years ago

#2881 closed defect (fixed)

cu_geojson scary warnings

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

Description

x86_64-w64-mingw32-gcc -g -O2  -Wall -Wmissing-prototypes -I/projects/geos/rel-3.5.0devw64gcc48/include -I/projects/proj/rel-4.8.0w64gcc48/include -I/projects/postgresql/rel/pg9.4w64gcc48/include -I/projects/rel-libiconv-1.13.1w64gcc48/include -I.. -I/projects/CGAL/rel-sfcgal-1.0.4w64gcc48/include -DHAVE_SFCGAL -c -o cu_out_x3d.o cu_out_x3d.c
x86_64-w64-mingw32-gcc -g -O2  -Wall -Wmissing-prototypes -I/projects/geos/rel-3.5.0devw64gcc48/include -I/projects/proj/rel-4.8.0w64gcc48/include -I/projects/postgresql/rel/pg9.4w64gcc48/include -I/projects/rel-libiconv-1.13.1w64gcc48/include -I.. -I/projects/CGAL/rel-sfcgal-1.0.4w64gcc48/include -DHAVE_SFCGAL -c -o cu_in_geojson.o cu_in_geojson.c
cu_in_geojson.c: In function 'do_geojson_test':
cu_in_geojson.c:34:4: warning: passing argument 1 of 'CU_assertImplementation' makes integer from pointer without a cast [enabled by default]
    CU_ASSERT(g);
    ^
In file included from c:\ming64gcc48\mingw64\x86_64-w64-mingw32\include\cunit\CUnit.h:113:0,
                 from c:\ming64gcc48\mingw64\x86_64-w64-mingw32\include\cunit\basic.h:36,
                 from cu_in_geojson.c:17:
c:\ming64gcc48\mingw64\x86_64-w64-mingw32\include\cunit\TestRun.h:410:19: note: expected 'int' but argument is of type 'struct LWGEOM *'
 CU_EXPORT CU_BOOL CU_assertImplementation(CU_BOOL bValue,
                   ^
cu_in_geojson.c: At top level:
cu_in_geojson.c:65:13: warning: 'do_geojson_unsupported' defined but not used [-Wunused-function]
 static void do_geojson_unsupported(char * in, char * exp)

Change History (2)

comment:1 by robe, 10 years ago

Summary: cu_geojson scray warningscu_geojson scary warnings

comment:2 by pramsey, 9 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.