From 11fdaa31bcadb05515bc9205eb5352f6f35e5a89 Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Wed, 15 Nov 2017 12:18:39 +0200 Subject: [PATCH] clipper: Add assertion to silence a static analyzer warning --- contrib/clipper/clipper.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/clipper/clipper.cpp b/contrib/clipper/clipper.cpp index 7d2af7d3a..d10cb1e5c 100644 --- a/contrib/clipper/clipper.cpp +++ b/contrib/clipper/clipper.cpp @@ -43,6 +43,7 @@ #include #include #include +#include #include #include #include @@ -2365,6 +2366,7 @@ void Clipper::ProcessHorizontal(TEdge *horzEdge) //ok, so far it looks like we're still in range of the horizontal edge if ( e->xcurr == horzEdge->xtop && !eMaxPair ) { + assert(horzEdge->nextInLML); if (SlopesEqual(*e, *horzEdge->nextInLML, m_UseFullRange)) { //if output polygons share an edge, they'll need joining later ...