Fix compiler warning about dead code due to disabled tests
This commit is contained in:
parent
17ec0af6a7
commit
0b8dcbb441
|
@ -2081,8 +2081,7 @@ private:
|
||||||
|
|
||||||
void nullpointerStdStream() {
|
void nullpointerStdStream() {
|
||||||
// TODO: Refactor these tests and re-enable them
|
// TODO: Refactor these tests and re-enable them
|
||||||
return;
|
#if 0
|
||||||
|
|
||||||
check("void f(std::ifstream& is) {\n"
|
check("void f(std::ifstream& is) {\n"
|
||||||
" char* p = 0;\n"
|
" char* p = 0;\n"
|
||||||
" is >> p;\n"
|
" is >> p;\n"
|
||||||
|
@ -2136,6 +2135,10 @@ private:
|
||||||
" std::cout << i;\n" // Its no char* (#4240)
|
" std::cout << i;\n" // Its no char* (#4240)
|
||||||
"}", true);
|
"}", true);
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
|
#else
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void functioncall() { // #3443 - function calls
|
void functioncall() { // #3443 - function calls
|
||||||
|
|
Loading…
Reference in New Issue