Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix C++ warnings due to missing default cases in switch statements #896

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

anchpop
Copy link
Contributor

@anchpop anchpop commented Sep 30, 2024

Some C++ compilers give warnings when not the default case is not covered in a switch statement over an enum class. Since Clipper2 sets -Werror, this causes builds to fail on these compilers when using it as a dependency through cmake's add_subdirectory. See GCC's -Wswitch-default docs.

Thank you for the great library by the way - been using it since the Clipper1 days.

@anchpop anchpop marked this pull request as ready for review September 30, 2024 07:12
Copy link

@greg7mdp greg7mdp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@AngusJohnson AngusJohnson merged commit 304235b into AngusJohnson:main Sep 30, 2024
7 checks passed
anchpop added a commit to anchpop/Clipper2 that referenced this pull request Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants