[mapserver-commits] r11422 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Thu Mar 31 08:33:14 EDT 2011
Author: tbonfort
Date: 2011-03-31 05:33:14 -0700 (Thu, 31 Mar 2011)
New Revision: 11422
Modified:
trunk/mapserver/maputil.c
Log:
initialize a value to prevent a spurious gcc warning
Modified: trunk/mapserver/maputil.c
===================================================================
--- trunk/mapserver/maputil.c 2011-03-31 12:23:06 UTC (rev 11421)
+++ trunk/mapserver/maputil.c 2011-03-31 12:33:14 UTC (rev 11422)
@@ -1702,6 +1702,10 @@
if(offsety == -99) { /* complex calculations */
for (i = 0; i < p->numlines; i++) {
pointObj old_pt, old_diffdir, old_offdir;
+ /* initialize old_offdir and old_diffdir, as gcc isn't smart enough to see that it
+ * is not an error to do so, and prints a warning */
+ old_offdir.x=old_offdir.y=old_diffdir.x=old_diffdir.y = 0;
+
idx=0;
first = 1;
More information about the mapserver-commits
mailing list