summaryrefslogtreecommitdiff
path: root/src/clipper/clipper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/clipper/clipper.cpp')
-rwxr-xr-xsrc/clipper/clipper.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/clipper/clipper.cpp b/src/clipper/clipper.cpp
index 56ad58416d..ea468d69e4 100755
--- a/src/clipper/clipper.cpp
+++ b/src/clipper/clipper.cpp
@@ -48,6 +48,8 @@
#include <ostream>
#include <functional>
+#pragma GCC diagnostic ignored "-Wshadow"
+
namespace ClipperLib {
#ifdef use_int32
@@ -3242,7 +3244,7 @@ void Clipper::BuildResult(Paths &polys)
int cnt = PointCount(p);
if (cnt < 2) continue;
pg.reserve(cnt);
- for (int i = 0; i < cnt; ++i)
+ for (int j = 0; j < cnt; ++j)
{
pg.push_back(p->Pt);
p = p->Prev;