@@ -414,18 +414,21 @@ TEST_F(ConstantFPRangeTest, Print) {
414414#ifdef GTEST_HAS_DEATH_TEST
415415#ifndef NDEBUG
416416TEST_F (ConstantFPRangeTest, NonCanonicalEmptySet) {
417- EXPECT_DEATH (ConstantFPRange::getNonNaN (APFloat (1.0 ), APFloat (0.0 )),
417+ EXPECT_DEATH (( void )( ConstantFPRange::getNonNaN (APFloat (1.0 ), APFloat (0.0 ) )),
418418 " Non-canonical form" );
419419}
420420TEST_F (ConstantFPRangeTest, MismatchedSemantics) {
421- EXPECT_DEATH (ConstantFPRange::getNonNaN (APFloat (0.0 ), APFloat (1 .0f )),
421+ EXPECT_DEATH (( void )( ConstantFPRange::getNonNaN (APFloat (0.0 ), APFloat (1 .0f ) )),
422422 " Should only use the same semantics" );
423- EXPECT_DEATH (One.contains (APFloat (1 .0f )),
423+ EXPECT_DEATH (( void )( One.contains (APFloat (1 .0f ) )),
424424 " Should only use the same semantics" );
425425 ConstantFPRange OneF32 = ConstantFPRange (APFloat (1 .0f ));
426- EXPECT_DEATH (One.contains (OneF32), " Should only use the same semantics" );
427- EXPECT_DEATH (One.intersectWith (OneF32), " Should only use the same semantics" );
428- EXPECT_DEATH (One.unionWith (OneF32), " Should only use the same semantics" );
426+ EXPECT_DEATH ((void )(One.contains (OneF32)),
427+ " Should only use the same semantics" );
428+ EXPECT_DEATH ((void )(One.intersectWith (OneF32)),
429+ " Should only use the same semantics" );
430+ EXPECT_DEATH ((void )(One.unionWith (OneF32)),
431+ " Should only use the same semantics" );
429432}
430433#endif
431434#endif
0 commit comments