Skip to content

Commit 41549f4

Browse files
committed
Try to fix Cppcheck warning to make Cppcheck happy
1 parent 0d1685c commit 41549f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/testtoken.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ class TestToken : public TestFixture {
504504
givenACodeSampleToTokenize var("int a ; int b ;");
505505

506506
// Varid == 0 should throw exception
507-
ASSERT_THROW(Token::Match(var.tokens(), "%type% %varid% ; %type% %name%", 0),InternalError);
507+
ASSERT_THROW((void)Token::Match(var.tokens(), "%type% %varid% ; %type% %name%", 0),InternalError);
508508

509509
ASSERT_EQUALS(true, Token::Match(var.tokens(), "%type% %varid% ; %type% %name%", 1));
510510
ASSERT_EQUALS(true, Token::Match(var.tokens(), "%type% %name% ; %type% %varid%", 2));

0 commit comments

Comments
 (0)