Why is GCC warning me about a fallthrough even when I use [[fallthrough]]? – stackoverflow.com

In the following piece of code, I use the standard [[fallthrough]] attribute from C++1z to document that a fallthrough is desired: #include <iostream> int main() { switch (0) { ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Why is GCC warning me about a fallthrough even when I use [[fallthrough]]? – stackoverflow.com"