Fix compiler warning -

```
include/mapnik/markers_placements/vertex_last.hpp:49:18: warning: variable 'cmd1' set but not used [-Wunused-but-set-variable]
        unsigned cmd1 = SEG_END;
                 ^
1 warning generated.
```
This commit is contained in:
Artem Pavlenko 2022-11-04 14:39:54 +00:00
parent 2a71903c75
commit 1d75721a46

View file

@ -46,7 +46,6 @@ class markers_vertex_last_placement : public markers_point_placement<Locator, De
geometry::point<double> p_next; geometry::point<double> p_next;
geometry::point<double> move_to; geometry::point<double> move_to;
unsigned cmd0 = SEG_END; unsigned cmd0 = SEG_END;
unsigned cmd1 = SEG_END;
unsigned cmd_next = SEG_END; unsigned cmd_next = SEG_END;
while ((cmd_next = this->locator_.vertex(&p_next.x, &p_next.y)) != SEG_END) while ((cmd_next = this->locator_.vertex(&p_next.x, &p_next.y)) != SEG_END)
@ -60,13 +59,11 @@ class markers_vertex_last_placement : public markers_point_placement<Locator, De
break; break;
case SEG_LINETO: case SEG_LINETO:
p1 = p0; p1 = p0;
cmd1 = cmd0;
p0 = p_next; p0 = p_next;
cmd0 = cmd_next; cmd0 = cmd_next;
break; break;
case SEG_CLOSE: case SEG_CLOSE:
p1 = p0; p1 = p0;
cmd1 = cmd0;
p0 = move_to; p0 = move_to;
cmd0 = cmd_next; cmd0 = cmd_next;
break; break;