Skip to content

Commit 3d98fd8

Browse files
committed
Silence compiler warning.
1 parent 5bf098b commit 3d98fd8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libmodbus/modbus.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,10 @@ int _modbus_receive_msg(modbus_t *ctx, uint8_t *msg, msg_type_t msg_type)
497497
if (length_to_read != 0) {
498498
step = _STEP_META;
499499
break;
500-
} /* else switches straight to the next step */
500+
}
501+
/* else switches straight to the next step */
502+
/* Silence compiler warning, do not remove the following comment. */
503+
/* fall through */
501504
case _STEP_META:
502505
length_to_read = compute_data_length_after_meta(
503506
ctx, msg, msg_type);

0 commit comments

Comments
 (0)