mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-25 01:22:47 +00:00
More MSVC fixes from Mateusz related to ISO C++ vs. C99 variable initialisation.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3848 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
parent
447f68e2cd
commit
7cbd1b301d
|
@ -308,12 +308,14 @@ output_polygon_ring_collection(uchar* geom,outfunc func,int supress)
|
||||||
int dimcount;
|
int dimcount;
|
||||||
double *first_point;
|
double *first_point;
|
||||||
double *last_point;
|
double *last_point;
|
||||||
|
int cnt;
|
||||||
|
int orig_cnt;
|
||||||
|
|
||||||
first_point = lwalloc(dims * sizeof(double));
|
first_point = lwalloc(dims * sizeof(double));
|
||||||
last_point = lwalloc(dims * sizeof(double));
|
last_point = lwalloc(dims * sizeof(double));
|
||||||
|
|
||||||
int cnt = read_int(&geom);
|
cnt = read_int(&geom);
|
||||||
int orig_cnt = cnt;
|
orig_cnt = cnt;
|
||||||
if ( cnt == 0 ){
|
if ( cnt == 0 ){
|
||||||
write_str(" EMPTY");
|
write_str(" EMPTY");
|
||||||
}
|
}
|
||||||
|
@ -827,12 +829,14 @@ output_wkb_polygon_ring_collection(uchar* geom,outwkbfunc func)
|
||||||
int dimcount;
|
int dimcount;
|
||||||
double *first_point;
|
double *first_point;
|
||||||
double *last_point;
|
double *last_point;
|
||||||
|
int cnt;
|
||||||
|
int orig_cnt;
|
||||||
|
|
||||||
first_point = lwalloc(dims * sizeof(double));
|
first_point = lwalloc(dims * sizeof(double));
|
||||||
last_point = lwalloc(dims * sizeof(double));
|
last_point = lwalloc(dims * sizeof(double));
|
||||||
|
|
||||||
int cnt = read_int(&geom);
|
cnt = read_int(&geom);
|
||||||
int orig_cnt = cnt;
|
orig_cnt = cnt;
|
||||||
|
|
||||||
LWDEBUGF(2, "output_wkb_polygon_ring_collection: %d iterations loop", cnt);
|
LWDEBUGF(2, "output_wkb_polygon_ring_collection: %d iterations loop", cnt);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue