Skip to content

Commit 20f7b9d

Browse files
pillo79soburi
authored andcommitted
warning cleanup: reorder constructor initialization list
Constructors should initialize members in the order they are declared in the class definition. Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
1 parent 2ce9314 commit 20f7b9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libraries/Wire/Wire.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static struct i2c_target_callbacks target_callbacks = {
4848
.stop = i2c_target_stop_cb,
4949
};
5050

51-
arduino::ZephyrI2C::ZephyrI2C(const struct device *i2c) : i2c_dev(i2c), i2c_cfg({0}) {
51+
arduino::ZephyrI2C::ZephyrI2C(const struct device *i2c) : i2c_cfg({0}), i2c_dev(i2c) {
5252
ring_buf_init(&txRingBuffer.rb, sizeof(txRingBuffer.buffer), txRingBuffer.buffer);
5353
ring_buf_init(&rxRingBuffer.rb, sizeof(rxRingBuffer.buffer), rxRingBuffer.buffer);
5454
}

0 commit comments

Comments
 (0)