[postgis-commits] svn - r3794 - spike/wktraster/rt_pg
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Wed Mar 4 12:25:41 PST 2009
Author: pracine
Date: 2009-03-04 12:25:41 -0800 (Wed, 04 Mar 2009)
New Revision: 3794
Modified:
spike/wktraster/rt_pg/rt_pg.c
Log:
Removed useless variables preventing MinGW compilation.
Modified: spike/wktraster/rt_pg/rt_pg.c
===================================================================
--- spike/wktraster/rt_pg/rt_pg.c 2009-03-04 20:23:06 UTC (rev 3793)
+++ spike/wktraster/rt_pg/rt_pg.c 2009-03-04 20:25:41 UTC (rev 3794)
@@ -956,8 +956,6 @@
int32_t nband = 0;
int32_t x = 0;
int32_t y = 0;
- uint16_t width = 0;
- uint16_t height = 0;
/* Index is 1-based */
nband = PG_GETARG_INT32(1);
@@ -986,7 +984,7 @@
band = rt_raster_get_band(ctx, raster, nband - 1);
if ( ! band ) {
/* TODO: Throw rrror or notice or nothing? */
- elog(ERROR, "Could not find raster band of index %d", index);
+ elog(ERROR, "Could not find raster band of index %d", nband);
PG_RETURN_NULL();
}
More information about the postgis-commits
mailing list