PMP: Initialize to avoid warning (#8598)

## Summary of Changes

An uninitialized variable gets assigned a value inside a `for` loop,
The compiler cannot know that we always enter the loop and [warns](
https://cgal.geometryfactory.com/CGAL/testsuite/CGAL-6.1-Ic-15/Polygon_mesh_processing_Examples/TestReport_lrineau_Ubuntu-latest-GCC6-Release.gz)
when we later use the variable.
We could use `[[assume(x)]]` to indicate that we always will enter the
loop but just initializing does the job.

## Release Management

* Affected package(s): PMP 
* License and copyright ownership: unchanged
This commit is contained in:
Sebastien Loriot 2024-11-14 07:41:42 +01:00 committed by GitHub
commit cf31301980
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -714,7 +714,7 @@ private:
{
Vector_3 bmin, bmax;
Orientation ori;
Orientation ori = ON_ORIENTED_BOUNDARY; // to avoid maybe uninitialzed warning
for (unsigned int i = 0; i < prismindex.size(); i++){
if (prismindex[i] == jump){