From: Mark Cave-Ayland Date: Tue, 27 May 2008 15:08:20 +0000 (+0000) Subject: Remove extra warnings related to the shp2pgsql deleted records patch X-Git-Tag: 1.4.0b1~901 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=020c2c53142f4ac1307bf7e6d3490bbdda6821a8;p=postgis Remove extra warnings related to the shp2pgsql deleted records patch git-svn-id: http://svn.osgeo.org/postgis/trunk@2785 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/loader/dbfopen.c b/loader/dbfopen.c index 337f2eb6e..80fab3544 100644 --- a/loader/dbfopen.c +++ b/loader/dbfopen.c @@ -776,10 +776,9 @@ int DBFReadSetup(DBFHandle psDBF, int hEntity) int DBFReadDeleted(DBFHandle psDBF, int hEntity) { unsigned char *pabyRec; - unsigned char *pDeleted; if( ! DBFReadSetup( psDBF, hEntity) ) - return NULL; + return 0; /* get reference to current record */ pabyRec = (unsigned char *) psDBF->pszCurrentRecord; diff --git a/loader/shapefil.h b/loader/shapefil.h index 34908b177..332aa547e 100644 --- a/loader/shapefil.h +++ b/loader/shapefil.h @@ -456,6 +456,8 @@ const char SHPAPI_CALL1(*) int SHPAPI_CALL DBFIsAttributeNULL( DBFHandle hDBF, int iShape, int iField ); +int SHPAPI_CALL DBFReadSetup(DBFHandle psDBF, int hEntity); + int SHPAPI_CALL DBFReadDeleted(DBFHandle psDBF, int hEntity); int SHPAPI_CALL diff --git a/loader/shpopen.c b/loader/shpopen.c index 599ccaf89..203c32329 100644 --- a/loader/shpopen.c +++ b/loader/shpopen.c @@ -173,9 +173,6 @@ * */ -static char rcsid[] = - "$Id$"; - #include "shapefil.h" #include