We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4513acc commit fce60ffCopy full SHA for fce60ff
c++/unittest/test_interactions.cpp
@@ -142,8 +142,9 @@ void Test_Interactions::testQuery()
142
CPPUNIT_ASSERT_EQUAL( interactions.totalAvailableSites(), 9 );
143
144
// Query for the rate calculator.
145
- const RateCalculator & rc = interactions.rateCalculator();
146
- CPPUNIT_ASSERT( &rc != NULL );
+ // const RateCalculator & rc = interactions.rateCalculator();
+ // CPPUNIT_ASSERT( &rc != NULL );
147
+ // error: the compiler can assume that the address of ‘rc’ will never be NULL [-Werror=address]
148
149
}
150
0 commit comments