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: Clang fall-through warnings #1742

Merged
merged 7 commits into from
Jan 25, 2024
Merged

Fix: Clang fall-through warnings #1742

merged 7 commits into from
Jan 25, 2024

Conversation

dragonmux
Copy link
Member

Detailed description

This PR addresses the Clang warnings about switch-case fall-through caused by it not understanding the magic comment /* fall through */. To do this we've introduced a new macro and definition logic to use the compiler attribute for the job.

Tested on GCC 12, ARM GCC 12 and Clang 18. CI build items should be added in the future but as CI needs an overhaul post-Meson-PR we'll do that in a separate PR.

Your checklist for this pull request

Closing issues

@dragonmux dragonmux added Bug Confirmed bug Enhancement General project improvement labels Jan 19, 2024
@dragonmux dragonmux added this to the v2.0 release milestone Jan 19, 2024
@dragonmux dragonmux requested a review from esden January 19, 2024 14:25
@dragonmux dragonmux force-pushed the fix/clang-fallthrough-warnings branch 3 times, most recently from 38221cd to 0b4e24c Compare January 22, 2024 16:35
@dragonmux dragonmux force-pushed the fix/clang-fallthrough-warnings branch from 0b4e24c to 8a753f1 Compare January 25, 2024 00:01
Copy link
Member

@esden esden left a comment

Choose a reason for hiding this comment

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

LGTM

@esden esden merged commit 8a753f1 into main Jan 25, 2024
17 checks passed
@dragonmux dragonmux deleted the fix/clang-fallthrough-warnings branch January 25, 2024 01:10
amyspark added a commit to amyspark/blackmagic that referenced this pull request Jan 26, 2024
amyspark added a commit to amyspark/blackmagic that referenced this pull request Jan 26, 2024
@amyspark amyspark mentioned this pull request Jan 26, 2024
6 tasks
amyspark added a commit to amyspark/blackmagic that referenced this pull request Jan 27, 2024
amyspark added a commit to amyspark/blackmagic that referenced this pull request Jan 27, 2024
dragonmux pushed a commit that referenced this pull request Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed bug Enhancement General project improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants