Tweak fall-through comment
GCC warns about switch statement fall-throughs unless they are annotated with a /* fall through */ comment. However, it also has a mode that understands the comment as long as it has the words "fall through" somewhere in it. If we slightly tweak the wording of this comment, we can use that mode to avoid the warning.
This commit is contained in:
parent
f57cde99e8
commit
9e26459664
2 changed files with 2 additions and 2 deletions
|
@ -234,7 +234,7 @@ int Analyser::hash_code_from_word(text_stream *text) {
|
|||
string_position p = Str::start(text);
|
||||
switch(Str::get(p)) {
|
||||
case '-': if (Str::len(text) == 1) break; /* an isolated minus sign is an ordinary word */
|
||||
/* and otherwise fall into... */
|
||||
/* and otherwise fall through to... */
|
||||
case '0': case '1': case '2': case '3': case '4':
|
||||
case '5': case '6': case '7': case '8': case '9': {
|
||||
int numeric = TRUE;
|
||||
|
|
|
@ -20354,7 +20354,7 @@ int Analyser__hash_code_from_word(text_stream *text) {
|
|||
string_position p = Str__start(text);
|
||||
switch(Str__get(p)) {
|
||||
case '-': if (Str__len(text) == 1) break; /* an isolated minus sign is an ordinary word */
|
||||
/* and otherwise fall into... */
|
||||
/* and otherwise fall through to... */
|
||||
case '0': case '1': case '2': case '3': case '4':
|
||||
case '5': case '6': case '7': case '8': case '9': {
|
||||
int numeric = TRUE;
|
||||
|
|
Loading…
Reference in a new issue