Skip to content

Commit cec2a88

Browse files
quality: fix uninitialized fields warnings
1 parent 1ae447b commit cec2a88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SilKit/IntegrationTests/ITest_SingleParticipant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class ITest_SingleParticipant : public testing::Test
8282
expectedData.resize(message.expectedData.size());
8383
std::copy(message.expectedData.begin(), message.expectedData.end(), expectedData.begin());
8484

85-
CanFrame msg;
85+
CanFrame msg{};
8686
msg.canId = 1;
8787
msg.dataField = expectedData;
8888
msg.dlc = static_cast<uint16_t>(msg.dataField.size());

SilKit/IntegrationTests/ITest_ThreeCanController.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class ITest_ThreeCanController : public testing::Test
115115
expectedData.resize(message.expectedData.size());
116116
std::copy(message.expectedData.begin(), message.expectedData.end(), expectedData.begin());
117117

118-
CanFrame msg;
118+
CanFrame msg{};
119119
msg.canId = 1;
120120
msg.dataField = expectedData;
121121
msg.dlc = static_cast<uint16_t>(msg.dataField.size());

0 commit comments

Comments
 (0)