Skip to content

Commit a4a6467

Browse files
committed
Removed "implicit-fallthrough" warnings.
1 parent 01b136a commit a4a6467

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/converters.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,12 +473,14 @@ fix_error get_fix_tag_as_tz_timestamp(const fix_group* const group, unsigned tag
473473
switch(*value.begin++)
474474
{
475475
case 'Z':
476-
MATCH(value.begin, SOH); // and fall through
476+
MATCH(value.begin, SOH);
477+
// fall through
477478
case SOH:
478479
ts.offset_minutes = 0;
479480
break;
480481
case '-':
481-
sign = -1; // and fall through
482+
sign = -1;
483+
// fall through
482484
case '+':
483485
{
484486
int hour, minute;
@@ -580,9 +582,11 @@ fix_error get_fix_tag_as_fix_version(const fix_group* const group, unsigned tag,
580582
switch(fix_string_length(value))
581583
{
582584
case sizeof("FIX27") - 1:
585+
// fall through
583586
case sizeof("FIX50SP1") - 1:
584587
if(CODE(value.begin[0], value.begin[1], value.begin[2]) == CODE('F', 'I', 'X'))
585588
break;
589+
// fall through
586590
default:
587591
RETURN( FE_INCORRECT_VALUE_FORMAT );
588592
}

src/scanner.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ bool extract_next_message(fix_parser* const parser)
219219
// make new state
220220
state->dest = parser->body;
221221
state->counter = parser->header_len;
222+
// fall through
222223

223224
case 1: // message header
224225
// copy header
@@ -234,6 +235,7 @@ bool extract_next_message(fix_parser* const parser)
234235

235236
// update context
236237
parser->result.error.context.begin = state->dest;
238+
// fall through
237239

238240
case 2: // message length
239241
// copy bytes
@@ -266,6 +268,7 @@ bool extract_next_message(fix_parser* const parser)
266268

267269
if(!state->dest)
268270
return false; // out of memory
271+
// fall through
269272

270273
case 3: // message body
271274
// copy
@@ -284,6 +287,7 @@ bool extract_next_message(fix_parser* const parser)
284287

285288
// prepare for trailer
286289
state->counter = sizeof("10=123|") - 1;
290+
// fall through
287291

288292
case 4: // trailer
289293
// copy

0 commit comments

Comments
 (0)