Skip to content

Commit 3f17111

Browse files
authored
Merge pull request #822 from ChiahongHong/variant-annotator
Fix nodiscard warning in variant annotator test
2 parents b81bb53 + a8de362 commit 3f17111

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Source/Engine/VariantAnnotatorTest.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,10 @@ TEST(VariantAnnotatorTest, AnnotateCharactersWithMismatchedArguments) {
137137
GTEST_SKIP();
138138
#endif
139139
auto annotator = CreateLoadedAnnotator();
140-
EXPECT_DEATH((annotator->annotate({"", "", "", "", "", "", ""},
141-
{"ㄍㄜˋ", "ㄖㄣˊ"})),
142-
"values.+readings");
140+
EXPECT_DEATH(
141+
(static_cast<void>(annotator->annotate(
142+
{"", "", "", "", "", "", ""}, {"ㄍㄜˋ", "ㄖㄣˊ"}))),
143+
"values.+readings");
143144
}
144145

145146
TEST(VariantAnnotatorTest, AnnotateCharactersWithAllDefaults) {

0 commit comments

Comments
 (0)