CPP: Fix FPs from AV Rule 114.ql.

This commit is contained in:
Geoffrey White
2018-11-19 16:04:45 +00:00
parent d18a7012f5
commit 5cae65295d
3 changed files with 3 additions and 3 deletions

View File

@@ -1,8 +1,6 @@
| test.c:8:5:8:14 | declaration | Function f2 should return a value of type int but does not return a value here |
| test.c:25:9:25:14 | ExprStmt | Function f4 should return a value of type int but does not return a value here |
| test.c:39:9:39:14 | ExprStmt | Function f6 should return a value of type int but does not return a value here |
| test.c:95:2:95:20 | if (...) ... | Function f13_func should return a value of type int but does not return a value here |
| test.c:95:2:95:20 | if (...) ... | Function f13_func should return a value of type void but does not return a value here |
| test.cpp:16:1:18:1 | { ... } | Function g2 should return a value of type MyValue but does not return a value here |
| test.cpp:48:2:48:26 | if (...) ... | Function g7 should return a value of type MyValue but does not return a value here |
| test.cpp:74:1:76:1 | { ... } | Function g10 should return a value of type second but does not return a value here |

View File

@@ -92,5 +92,5 @@ void f13()
void f13_func(int x)
{
if (x < 10) return; // GOOD [FALSE POSITIVE]
if (x < 10) return; // GOOD
}