[postgis-tickets] [PostGIS] #2881: cu_geojson scray warnings

PostGIS trac at osgeo.org
Thu Aug 7 17:01:08 PDT 2014


#2881: cu_geojson scray warnings
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.2.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------
 {{{
 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)
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2881>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list