From 7b08d996277a5019f1e357f595ba78a3455841cc Mon Sep 17 00:00:00 2001 From: Alexey Botchkov Date: Thu, 24 Nov 2011 16:26:13 +0400 Subject: fixes to make compilers happy. per-file comments: mysql-test/t/gis-precise.test number-to-string conversion differs on Windows. Have to tolerate this while GIS data is stored in doubles. sql/spatial.cc prev_x initialization added. --- sql/spatial.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sql') diff --git a/sql/spatial.cc b/sql/spatial.cc index b4ce6f59185..89ecec51406 100644 --- a/sql/spatial.cc +++ b/sql/spatial.cc @@ -766,7 +766,8 @@ int Gis_line_string::store_shapes(Gcalc_shape_transporter *trn) const { uint32 n_points; double x, y; - double prev_x, prev_y; + double prev_x= 0.0; + double prev_y= 0.0; int first_point= 1; const char *data= m_data; -- cgit v1.2.1