Skip to content

Commit b41428b

Browse files
committed
Silence warnings
1 parent 428ee17 commit b41428b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ModbusRTUClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ModbusRTUClientClass::ModbusRTUClientClass() :
3232
}
3333

3434
ModbusRTUClientClass::ModbusRTUClientClass(RS485Class& rs485) :
35-
_rs485(&rs485), ModbusClient(1000)
35+
ModbusClient(1000), _rs485(&rs485)
3636
{
3737
}
3838

src/libmodbus/modbus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ 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+
} /*FALLTHROUGH */ /* else switches straight to the next step */
501501
case _STEP_META:
502502
length_to_read = compute_data_length_after_meta(
503503
ctx, msg, msg_type);

0 commit comments

Comments
 (0)