Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Use fallthrough attribute instead of comment as the comment no longer works in Clang 10. #25

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

BoboFraggins
Copy link

Clang 10 stopped supporting fallthrough comments in favor of the statement attribute 'fallthrough'.

For reference:

https://gcc.gnu.org/onlinedocs/gcc/Statement-Attributes.html

And, where the code maintainer of Clang explains the issue:

https://bugs.llvm.org/show_bug.cgi?id=43465#c37

He suggests either updating to the new style or turning off the warning. I assume you would prefer to not turn off the warning, although I don't know what version of gcc is used.

@CLAassistant
Copy link

CLAassistant commented Oct 19, 2020

CLA assistant check
All committers have signed the CLA.

@Ak-x Ak-x added the c-sdk label Mar 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants