From 26ea21551e8b14339fa3016da28cc6e963142944 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Thu, 23 Apr 2020 00:42:42 +0200 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20discard=20const=20when=20copyin?= =?UTF-8?q?g=20a=20pointer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported by GCC. --- src/avp/dynamics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/avp/dynamics.c b/src/avp/dynamics.c index edb5ae9..bb38de4 100644 --- a/src/avp/dynamics.c +++ b/src/avp/dynamics.c @@ -3272,7 +3272,7 @@ static void TestObjectWithStaticBoundingBox(DISPLAYBLOCK *objectPtr) static int IsPolygonWithinDynamicBoundingBox(const struct ColPolyTag *polyPtr) { - VECTORCH *vertices = polyPtr->PolyPoint; + const VECTORCH *vertices = polyPtr->PolyPoint; if (polyPtr->NumberOfVertices==4) { @@ -3353,7 +3353,7 @@ static int IsPolygonWithinDynamicBoundingBox(const struct ColPolyTag *polyPtr) static int IsPolygonWithinStaticBoundingBox(const struct ColPolyTag *polyPtr) { - VECTORCH *vertices = polyPtr->PolyPoint; + const VECTORCH *vertices = polyPtr->PolyPoint; if (polyPtr->NumberOfVertices==4) {