We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67b1698 commit fe2717fCopy full SHA for fe2717f
1 file changed
test/testother.cpp
@@ -1246,16 +1246,6 @@ class TestOther : public TestFixture {
1246
" if (currtime > t) {}\n"
1247
" }\n"
1248
"}", "test.c");
1249
- ASSERT_EQUALS("", errout.str());
1250
-
1251
- check("void f() {\n"
1252
- " time_t currtime;\n"
1253
- " if (a) {\n"
1254
- " int x = 123;\n"
1255
- " currtime = time(&dummy);\n"
1256
- " if (currtime > t) {}\n"
1257
- " }\n"
1258
- "}", "test.c");
1259
ASSERT_EQUALS("[test.c:2]: (style) The scope of the variable 'currtime' can be reduced.\n", errout.str());
1260
}
1261
0 commit comments