From 9159816fb46a34d44531df0c56c76f564084e8ff Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 7 Dec 2022 08:02:35 +0000 Subject: [PATCH] PMP: Fix for a -Wmaybe-uninitialized --- Polygon_mesh_processing/include/CGAL/Polyhedral_envelope.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Polygon_mesh_processing/include/CGAL/Polyhedral_envelope.h b/Polygon_mesh_processing/include/CGAL/Polyhedral_envelope.h index ae209a87ff7..1d00c87266f 100644 --- a/Polygon_mesh_processing/include/CGAL/Polyhedral_envelope.h +++ b/Polygon_mesh_processing/include/CGAL/Polyhedral_envelope.h @@ -864,7 +864,11 @@ private: Implicit_Seg_Facet_interpoint_Out_Prism_return_local_id(const ePoint_3 &ip, const std::vector &prismindex, const unsigned int &jump, int &id) const { - Oriented_side ori; + Oriented_side ori = ON_POSITIVE_SIDE; // The compiler sees the + // possibility that the + // nested for loop body is + // not executed and warns that + // ori may not be initialized for (unsigned int i = 0; i < prismindex.size(); i++){ if (prismindex[i] == jump){