switch case fallthrough is an error, but only enabled with -w
Merge pull request #2965 from rainers/issue11749

fix  Issue 11749 - switch case fallthrough error is enabled with -w, but cannot be made informational warning