mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 07:38:20 +02:00
systemd: backport fall-through comments for -Wimplicit-fallthrough warning
This commit is contained in:
parent
4603ce7ad0
commit
23d9fbb858
3 changed files with 9 additions and 2 deletions
|
|
@ -129,18 +129,25 @@ void siphash24_compress(const void *_in, size_t inlen, struct siphash *state) {
|
|||
switch (left) {
|
||||
case 7:
|
||||
state->padding |= ((uint64_t) in[6]) << 48;
|
||||
/* fall through */
|
||||
case 6:
|
||||
state->padding |= ((uint64_t) in[5]) << 40;
|
||||
/* fall through */
|
||||
case 5:
|
||||
state->padding |= ((uint64_t) in[4]) << 32;
|
||||
/* fall through */
|
||||
case 4:
|
||||
state->padding |= ((uint64_t) in[3]) << 24;
|
||||
/* fall through */
|
||||
case 3:
|
||||
state->padding |= ((uint64_t) in[2]) << 16;
|
||||
/* fall through */
|
||||
case 2:
|
||||
state->padding |= ((uint64_t) in[1]) << 8;
|
||||
/* fall through */
|
||||
case 1:
|
||||
state->padding |= ((uint64_t) in[0]);
|
||||
/* fall through */
|
||||
case 0:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1277,7 +1277,7 @@ bool clock_supported(clockid_t clock) {
|
|||
if (!clock_boottime_supported())
|
||||
return false;
|
||||
|
||||
/* fall through, after checking the cached value for CLOCK_BOOTTIME. */
|
||||
/* fall through */
|
||||
|
||||
default:
|
||||
/* For everything else, check properly */
|
||||
|
|
|
|||
|
|
@ -1003,7 +1003,7 @@ static int client_receive_message(
|
|||
break;
|
||||
}
|
||||
|
||||
/* fall through for Soliciation Rapid Commit option check */
|
||||
/* fall through */ /* for Soliciation Rapid Commit option check */
|
||||
case DHCP6_STATE_REQUEST:
|
||||
case DHCP6_STATE_RENEW:
|
||||
case DHCP6_STATE_REBIND:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue