Skip to content

Commit

Permalink
add empty default: label to gimli switch statements
Browse files Browse the repository at this point in the history
This triggers -Wswitch-default because the switch is not exhaustive.
  • Loading branch information
chrisnc committed Oct 16, 2024
1 parent f5c05c2 commit c0f66b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gimli.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ void gimli(uint32_t state[GIMLI_WORDS])
/* big swap: pattern ..S...S...S. etc. */
x = shuffle(x, 2, 3, 0, 1);
break;
default:
break;
}
}
s[0] = x;
Expand Down Expand Up @@ -117,6 +119,8 @@ void gimli(uint32_t state[GIMLI_WORDS])
state[1] = state[3];
state[3] = tmp;
break;
default:
break;
}
}
}
Expand Down

0 comments on commit c0f66b0

Please # to comment.