-
Notifications
You must be signed in to change notification settings - Fork 0
/
CppCheckResults.xml
9 lines (9 loc) · 2.31 KB
/
CppCheckResults.xml
1
2
3
4
5
6
7
8
9
<?xml version="1.0" encoding="UTF-8" ?>
<results>
<error file="src\OtherFunctions.c" line="25" id="variableScope" severity="style" msg="The scope of the variable 'gain' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced:\012void f(int x)\012{\012 int i = 0;\012 if (x) {\012 // it's safe to move 'int i = 0;' here\012 for (int n = 0; n < 10; ++n) {\012 // it is possible but not safe to move 'int i = 0;' here\012 do_something(&i);\012 }\012 }\012}\012When you see this message it is always safe to reduce the variable scope 1 level." />
<error file="src\OtherFunctions.c" line="25" id="variableScope" severity="style" msg="The scope of the variable 'pan' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced:\012void f(int x)\012{\012 int i = 0;\012 if (x) {\012 // it's safe to move 'int i = 0;' here\012 for (int n = 0; n < 10; ++n) {\012 // it is possible but not safe to move 'int i = 0;' here\012 do_something(&i);\012 }\012 }\012}\012When you see this message it is always safe to reduce the variable scope 1 level." />
<error file="src\BodyStack.c" line="12" id="unusedFunction" severity="style" msg="The function 'Body_getBody' is never used." />
<error file="src\BodyStack.c" line="79" id="unusedFunction" severity="style" msg="The function 'Snake_lengthCheck' is never used." />
<error file="src\OtherFunctions.c" line="3" id="unusedFunction" severity="style" msg="The function 'distanceof' is never used." />
<error id="missingInclude" severity="style" msg="Cppcheck cannot find all the include files. Cppcheck can check the code without the include files found. But the results will probably be more accurate if all the include files are found. Please check your project's include directories and add all of them as include directories for Cppcheck. To see what files Cppcheck cannot find use --check-config." />
</results>