Skip to content

Commit

Permalink
Add fallthrough comments to keep GCC >= 7.x happy. (#1583)
Browse files Browse the repository at this point in the history
  • Loading branch information
jemc authored Feb 14, 2017
1 parent 86e4fc6 commit bfb4b94
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/libponyrt/ds/fun.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ static uint64_t siphash24(const unsigned char* key, const char* in, size_t len)

switch(len & 7)
{
case 7: b |= ((uint64_t)in[6]) << 48;
case 6: b |= ((uint64_t)in[5]) << 40;
case 5: b |= ((uint64_t)in[4]) << 32;
case 4: b |= ((uint64_t)in[3]) << 24;
case 3: b |= ((uint64_t)in[2]) << 16;
case 2: b |= ((uint64_t)in[1]) << 8;
case 7: b |= ((uint64_t)in[6]) << 48; // -fallthrough
case 6: b |= ((uint64_t)in[5]) << 40; // -fallthrough
case 5: b |= ((uint64_t)in[4]) << 32; // -fallthrough
case 4: b |= ((uint64_t)in[3]) << 24; // -fallthrough
case 3: b |= ((uint64_t)in[2]) << 16; // -fallthrough
case 2: b |= ((uint64_t)in[1]) << 8; // -fallthrough
case 1: b |= ((uint64_t)in[0]);
}

Expand Down

0 comments on commit bfb4b94

Please sign in to comment.