From 523b7f036b881df39f7a321483e3156ef68c0998 Mon Sep 17 00:00:00 2001 From: Kp Date: Sun, 22 May 2016 17:49:30 +0000 Subject: [PATCH] Fix -Wshadow warnings in med_create_segment --- similar/editor/segment.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/similar/editor/segment.cpp b/similar/editor/segment.cpp index a5c4641c3..eedfc8d1e 100644 --- a/similar/editor/segment.cpp +++ b/similar/editor/segment.cpp @@ -1358,13 +1358,14 @@ int med_form_bridge_segment(const vsegptridx_t seg1, int side1, const vsegptridx // It will be created with walls on all sides, ie not connected to anything. void med_create_segment(const vsegptridx_t sp,fix cx, fix cy, fix cz, fix length, fix width, fix height, const vms_matrix &mp) { - int i,f; + int f; Num_segments++; sp->segnum = 1; // What to put here? I don't know. // Form connections to children, of which it has none. - for (i=0; ichildren[i] = segment_none; // sp->sides[i].render_flag = 0; sp->sides[i].wall_num = wall_none;