Skip to content

Commit 9fbc4e5

Browse files
authored
Update test_graph.cpp
1 parent 967e681 commit 9fbc4e5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/graph/test_graph.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ TEST(graph, vertex_out_of_range) {
352352
graph.makeConnection(fcLayer2, fcLayer3);
353353
graph.makeConnection(fcLayer, fcLayer4);
354354
graph.setOutput(fcLayer4, output);
355-
ASSERT_ANY_THROW(graph.getVertexValue(5));
355+
ASSERT_ANY_THROW(static_cast<void>(graph.getVertexValue(5)));
356356
}
357357

358358
TEST(graph, edges_out_of_range) {
@@ -396,7 +396,7 @@ TEST(graph, inputs_out_of_range) {
396396
graph.makeConnection(fcLayer2, fcLayer3);
397397
graph.makeConnection(fcLayer, fcLayer4);
398398
graph.setOutput(fcLayer4, output);
399-
ASSERT_ANY_THROW(graph.getInputsSize(999));
399+
ASSERT_ANY_THROW(static_cast<void>(graph.getInputsSize(999)));
400400
}
401401

402402
TEST(graph, get_layer_out_of_range) {

0 commit comments

Comments
 (0)