Fix Several Compiler Warnings, and Optimize CI scripts #74
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Introduction
A constant flood of warnings is harmful, even if the warnings are safe to ignore, because they would mask useful warnings in the future (a real bug has indeed been found, a separate discussion is needed, see #75). This Pull Request fix several compiler warnings.
src/ParameterObjects.cpp: remove unused "dHelp"
src/CSPrimitives.cpp: add a fallthrough comment in CoordInRange
If
Wimplicit-fallthrough(part of-Wextra) is enabled, GCC requires fallthrough switch/case to explicitly marked with a compiler intrinsic or a text comment. Mark Cylindrical coordinate preprocessing with a fallthrough comment.src/CSPrimPolyhedron_p.h: fix CGAL 6 deprecation
The header
AABB_traits.his now deprecated in CGAL v6. More toAABB_traits_6.hfor CGAL v6+.CI: Enable compiler warnings, use actions/checkout for FreeBSD
Use GitHub Actions
actions/checkoutto fetch source code on FreeBSD instead of manually launching git. Also, enable compiler warnings viaCXXFLAGSon all platforms.