Skip to content

Commit 674c2ad

Browse files
committed
update
1 parent e093efd commit 674c2ad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

onnxruntime/test/common/safeint_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ TEST(SafeIntTest, SafeMulHandlesSameVariableOperands) {
2727

2828
#ifndef ORT_NO_EXCEPTIONS
2929
TEST(SafeIntTest, SafeMulThrowsOnInitialCastOverflow) {
30-
EXPECT_THROW((SafeMul<uint32_t>(-1, 2)), OnnxRuntimeException);
30+
EXPECT_THROW((void)SafeMul<uint32_t>(-1, 2), OnnxRuntimeException);
3131
}
3232

3333
TEST(SafeIntTest, SafeMulThrowsOnMultiplyOverflow) {
34-
EXPECT_THROW((SafeMul<int>(std::numeric_limits<int>::max(), 2)), OnnxRuntimeException);
34+
EXPECT_THROW((void)SafeMul<int>(std::numeric_limits<int>::max(), 2), OnnxRuntimeException);
3535
}
3636
#endif
3737

0 commit comments

Comments
 (0)