- Move a variable declaration used only for debugging, to avoid compiler warning.

This commit is contained in:
Jean-Francois Doyon 2007-03-05 01:28:49 +00:00
parent 871fa5c8ef
commit 76a820beeb

View file

@ -109,7 +109,6 @@ void shape_datasource::init(shape_io& shape)
//invalid version number //invalid version number
throw datasource_exception("invalid version number"); throw datasource_exception("invalid version number");
} }
int shape_type = shape.shp().read_ndr_integer();
shape.shp().read_envelope(extent_); shape.shp().read_envelope(extent_);
shape.shp().skip(4*8); shape.shp().skip(4*8);
@ -123,6 +122,7 @@ void shape_datasource::init(shape_io& shape)
} }
#ifdef MAPNIK_DEBUG #ifdef MAPNIK_DEBUG
int shape_type = shape.shp().read_ndr_integer();
std::clog << extent_ << std::endl; std::clog << extent_ << std::endl;
std::clog << "file_length=" << file_length_ << std::endl; std::clog << "file_length=" << file_length_ << std::endl;
std::clog << "shape_type=" << shape_type << std::endl; std::clog << "shape_type=" << shape_type << std::endl;