From acce99f29b3a1601b46002d66e91dbc2c2088c10 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Mon, 29 Mar 2021 14:15:18 +0200 Subject: [PATCH] Fixed some compilation warnings in MutablePolygon.cpp --- src/libslic3r/MutablePolygon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/MutablePolygon.cpp b/src/libslic3r/MutablePolygon.cpp index 54ce10b49..dc1d47731 100644 --- a/src/libslic3r/MutablePolygon.cpp +++ b/src/libslic3r/MutablePolygon.cpp @@ -148,6 +148,7 @@ static bool clip_narrow_corner( if (polygon.size() <= 3) { // A hole degenerated to an empty polygon, or a tiny triangle remained. +#ifndef NDEBUG bool blocked = forward == Blocked || backward == Blocked; assert(polygon.size() < 3 || // Remaining triangle is CCW oriented. Both sides must be "blocked", but the other side may have not been @@ -155,7 +156,6 @@ static bool clip_narrow_corner( blocked || // Remaining triangle is concave, however both of its arms are long. (forward == Far && backward == Far)); -#ifndef _NDEBUG if (polygon.size() == 3) { // Verify that the remaining triangle is CCW or CW. p02 = it0.prev()->cast();