Skip to content

Commit

Permalink
add default: to switch(s) to cut down on compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehh committed Mar 29, 2011
1 parent b7cf686 commit 3fb52ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pmc/structview.pmc
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,8 @@ The returned array is of the same format as the one used for C<StructView.init_p
VTABLE_set_integer_keyed_int(INTERP, result, 3, s);
}
break;
default:
break;
}

for (i = 1, j = 1; i <= n; i++) {
Expand All @@ -1080,6 +1082,9 @@ The returned array is of the same format as the one used for C<StructView.init_p
result, i * 3 + j + 1, elts[i - 1].byte_offset);
VTABLE_set_integer_keyed_int(INTERP,
result, i * 3 + j + 2, elts[i - 1].bit_offset);

default:
break;
}
}

Expand Down

0 comments on commit 3fb52ac

Please sign in to comment.