[GRASS-dev] [GRASS GIS] #2724: gdal-grass: Wrong return type in ogrgrass.h

GRASS GIS trac at osgeo.org
Fri Aug 21 02:23:25 PDT 2015


#2724: gdal-grass: Wrong return type in ogrgrass.h
------------------------+-------------------------
 Reporter:  mkrapp      |      Owner:  grass-dev@…
     Type:  defect      |     Status:  new
 Priority:  normal      |  Milestone:
Component:  Default     |    Version:  unspecified
 Keywords:  gdal-grass  |        CPU:  Unspecified
 Platform:  MacOSX      |
------------------------+-------------------------
 {{{GetFeatureCount( int )}}} in {{{ogrgrass.h}}} returns {{{int}}} but
 should return {{{GIntBig}} instead. Error message when compiling the
 source ({{{gdal-grass-1.4.3.tar.gz}}}) is:

 {{{
 In file included from ogrgrassdriver.cpp:30:
 ./ogrgrass.h:54:25: error: virtual function 'GetFeatureCount' has a
 different return type ('int') than the function it overrides
       (which has return type 'GIntBig' (aka 'long long'))
     int                 GetFeatureCount( int );
     ~~~                 ^

 Find a patch attached
 }}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2724>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list