Skip to content
This repository was 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
BoboFraggins wants to merge 2 commits intonewrelic:mainfrom
BoboFraggins:clang-10
Open

Use fallthrough attribute instead of comment as the comment no longer works in Clang 10.#25
BoboFraggins wants to merge 2 commits intonewrelic:mainfrom
BoboFraggins:clang-10

Conversation

@BoboFraggins
Copy link
Copy Markdown

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
Copy Markdown

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.

5 participants