Closed Smattr closed 4 years ago
I checked those codes, they are correct.
Yes, that was what I thought too. The "// fall through" comments just silence the compiler warnings. Some more information at https://developers.redhat.com/blog/2017/03/10/wimplicit-fallthrough-in-gcc-7/.
Thanks, I see.
GCC 7 added -Wimplicit-fallthrough that warns when a non-empty switch case has no break. This is enabled by -Wall.