Skip to content

Commit ae019b3

Browse files
committed
Fix warn unused variable in test
Signed-off-by: Jorge Perez <jjperez@ekumenlabs.com>
1 parent 77f4c00 commit ae019b3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/network/NetworkConfig_TEST.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,30 +33,35 @@ TEST(NetworkManager, ValueConstructor)
3333
assert(config.role == NetworkRole::None);
3434
assert(config.numSecondariesExpected == 0);
3535
// Expect console warning as well
36+
(void) config;
3637
}
3738

3839
{
3940
// Primary with number of secondaries is valid
4041
auto config = NetworkConfig::FromValues("PRIMARY", 3);
4142
assert(config.role == NetworkRole::SimulationPrimary);
4243
assert(config.numSecondariesExpected == 3);
44+
(void) config;
4345
}
4446

4547
{
4648
// Secondary is always valid
4749
auto config = NetworkConfig::FromValues("SECONDARY", 0);
4850
assert(config.role == NetworkRole::SimulationSecondary);
51+
(void) config;
4952
}
5053

5154
{
5255
// Readonly is always valid
5356
auto config = NetworkConfig::FromValues("READONLY");
5457
assert(config.role == NetworkRole::ReadOnly);
58+
(void) config;
5559
}
5660

5761
{
5862
// Anything else is invalid
5963
auto config = NetworkConfig::FromValues("READ_WRITE");
6064
assert(config.role == NetworkRole::None);
65+
(void) config;
6166
}
6267
}

0 commit comments

Comments
 (0)