ruanjue / wtdbg2

Redbean: A fuzzy Bruijn graph approach to long noisy reads assembly
GNU General Public License v3.0
513 stars 94 forks source link

squash GCC -Wimplicit-fallthrough warnings #185

Closed Smattr closed 4 years ago

Smattr commented 4 years ago

GCC 7 added -Wimplicit-fallthrough that warns when a non-empty switch case has no break. This is enabled by -Wall.

ruanjue commented 4 years ago

I checked those codes, they are correct.

Smattr commented 4 years ago

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/.

ruanjue commented 4 years ago

Thanks, I see.