Skip to content

Commit

Permalink
Amend the fallthrough comments to keep GCC 7 on Fedora Rawhide happy. (
Browse files Browse the repository at this point in the history
  • Loading branch information
russel authored and jemc committed Feb 14, 2017
1 parent bfb4b94 commit e042856
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/libponyc/pass/sugar.c
Original file line number Diff line number Diff line change
Expand Up @@ -981,8 +981,7 @@ static void add_as_type(pass_opt_t* opt, ast_t* type, ast_t* pattern,
ast_append(pattern, dontcare);
break;
}
// Fallthrough.
}
} // fallthrough

default:
{
Expand Down
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; // -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 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 e042856

Please sign in to comment.