https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93894
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment #4
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93894
--- Comment #3 from Andrew Pinski ---
The warning is not sensitive to what is being switched on. That is the inner
most switch is considered as falling through as the switch is not checked for
the values it will be switched on.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93894
--- Comment #2 from Dmitry G. Dyachenko ---
`unsigned' changes nothing
$ cat xxu.i
int f1(int j, unsigned k)
{
switch (j) {
case 0:
switch (k % 2) {
case 0:
return 0;
case 1:
return 1;
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93894
--- Comment #1 from Andreas Schwab ---
case -1 is missing.