c-sdk
c-sdk copied to clipboard
Use fallthrough attribute instead of comment as the comment no longer works in Clang 10.
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.