Skip to content

Commit fce60ff

Browse files
author
Mikael Leetmaa
committed
Task #2000: Update the interactions tests to work with g++ 9.3
1 parent 4513acc commit fce60ff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

c++/unittest/test_interactions.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,9 @@ void Test_Interactions::testQuery()
142142
CPPUNIT_ASSERT_EQUAL( interactions.totalAvailableSites(), 9 );
143143

144144
// Query for the rate calculator.
145-
const RateCalculator & rc = interactions.rateCalculator();
146-
CPPUNIT_ASSERT( &rc != NULL );
145+
// const RateCalculator & rc = interactions.rateCalculator();
146+
// CPPUNIT_ASSERT( &rc != NULL );
147+
// error: the compiler can assume that the address of ‘rc’ will never be NULL [-Werror=address]
147148

148149
}
149150

0 commit comments

Comments
 (0)