Skip to content

Commit 0b8dcbb

Browse files
committed
Fix compiler warning about dead code due to disabled tests
1 parent 17ec0af commit 0b8dcbb

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

test/testnullpointer.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2081,8 +2081,7 @@ class TestNullPointer : public TestFixture {
20812081

20822082
void nullpointerStdStream() {
20832083
// TODO: Refactor these tests and re-enable them
2084-
return;
2085-
2084+
#if 0
20862085
check("void f(std::ifstream& is) {\n"
20872086
" char* p = 0;\n"
20882087
" is >> p;\n"
@@ -2136,6 +2135,10 @@ class TestNullPointer : public TestFixture {
21362135
" std::cout << i;\n" // Its no char* (#4240)
21372136
"}", true);
21382137
ASSERT_EQUALS("", errout.str());
2138+
#else
2139+
return;
2140+
#endif
2141+
21392142
}
21402143

21412144
void functioncall() { // #3443 - function calls

0 commit comments

Comments
 (0)