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

Make fallthrough explicit for libworker.c #1110

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

r-barnes
Copy link
Contributor

The code currently doesn't compile with LLVM's -Wimplicit-fallthrough flag, but the attribute works for both GCC (>=7) and LLVM.

The code currently doesn't compile with LLVM's `-Wimplicit-fallthrough` flag, but the attribute works for both GCC (>=7) and LLVM.
Copy link
Member

@wcawijngaards wcawijngaards left a comment

Choose a reason for hiding this comment

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

It is nice, but the comment is there for other compilers. Also a feature test for the attribute is needed.

@wcawijngaards wcawijngaards merged commit 89c9eaf into NLnetLabs:master Jul 23, 2024
1 check passed
wcawijngaards added a commit that referenced this pull request Jul 23, 2024
@r-barnes r-barnes deleted the patch-1 branch July 30, 2024 19:01
@r-barnes
Copy link
Contributor Author

@wcawijngaards - thanks for being so thorough!

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.

2 participants