Skip to content

Make fallthrough explicit for libworker.c#1110

Merged
wcawijngaards merged 1 commit intoNLnetLabs:masterfrom
r-barnes:patch-1
Jul 23, 2024
Merged

Make fallthrough explicit for libworker.c#1110
wcawijngaards merged 1 commit intoNLnetLabs:masterfrom
r-barnes:patch-1

Conversation

@r-barnes
Copy link
Copy Markdown
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
Copy Markdown
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
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
Copy Markdown
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