You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
438 lines
36 KiB
438 lines
36 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<results version="2">
|
|
<cppcheck version="2.7"/>
|
|
<errors>
|
|
<error id="arrayIndexOutOfBounds" severity="error" msg="Array 'arr[3]' accessed at index 3, which is out of bounds." verbose="Array 'arr[3]' accessed at index 3, which is out of bounds." cwe="788" file0="/home/feng/test/math.c">
|
|
<location file="/home/feng/test/math.c" line="1393" column="8" info="Array index out of bounds"/>
|
|
<location file="/home/feng/test/math.c" line="1392" column="17" info="Assignment 'index=3', assigned value is 3"/>
|
|
</error>
|
|
<error id="zerodiv" severity="error" msg="Division by zero." verbose="Division by zero." cwe="369" file0="/home/feng/test/math.c">
|
|
<location file="/home/feng/test/math.c" line="1053" column="14" info="Division by zero"/>
|
|
<location file="/home/feng/test/math.c" line="1052" column="13" info="Assignment 'b=0', assigned value is 0"/>
|
|
</error>
|
|
<error id="shadowFunction" severity="style" msg="Local variable 'max' shadows outer function" verbose="Local variable 'max' shadows outer function" cwe="398" file0="/home/feng/test/math.c">
|
|
<location file="/home/feng/test/math.c" line="656" column="12" info="Shadow variable"/>
|
|
<location file="/home/feng/test/math.h" line="179" column="12" info="Shadowed declaration"/>
|
|
<symbol>max</symbol>
|
|
</error>
|
|
<error id="shadowFunction" severity="style" msg="Local variable 'min' shadows outer function" verbose="Local variable 'min' shadows outer function" cwe="398" file0="/home/feng/test/math.c">
|
|
<location file="/home/feng/test/math.c" line="670" column="12" info="Shadow variable"/>
|
|
<location file="/home/feng/test/math.h" line="178" column="12" info="Shadowed declaration"/>
|
|
<symbol>min</symbol>
|
|
</error>
|
|
<error id="constParameter" severity="style" msg="Parameter 'array' can be declared with const" verbose="Parameter 'array' can be declared with const" cwe="398" file0="/home/feng/test/math.c">
|
|
<location file="/home/feng/test/math.c" line="445" column="27" info="Parameter 'array' can be declared with const"/>
|
|
<symbol>array</symbol>
|
|
</error>
|
|
<error id="constParameter" severity="style" msg="Parameter 'array' can be declared with const" verbose="Parameter 'array' can be declared with const" cwe="398" file0="/home/feng/test/math.c">
|
|
<location file="/home/feng/test/math.c" line="455" column="27" info="Parameter 'array' can be declared with const"/>
|
|
<symbol>array</symbol>
|
|
</error>
|
|
<error id="constParameter" severity="style" msg="Parameter 'array' can be declared with const" verbose="Parameter 'array' can be declared with const" cwe="398" file0="/home/feng/test/math.c">
|
|
<location file="/home/feng/test/math.c" line="652" column="25" info="Parameter 'array' can be declared with const"/>
|
|
<symbol>array</symbol>
|
|
</error>
|
|
<error id="constParameter" severity="style" msg="Parameter 'array' can be declared with const" verbose="Parameter 'array' can be declared with const" cwe="398" file0="/home/feng/test/math.c">
|
|
<location file="/home/feng/test/math.c" line="666" column="25" info="Parameter 'array' can be declared with const"/>
|
|
<symbol>array</symbol>
|
|
</error>
|
|
<error id="constParameter" severity="style" msg="Parameter 'array' can be declared with const" verbose="Parameter 'array' can be declared with const" cwe="398" file0="/home/feng/test/math.c">
|
|
<location file="/home/feng/test/math.c" line="677" column="34" info="Parameter 'array' can be declared with const"/>
|
|
<symbol>array</symbol>
|
|
</error>
|
|
<error id="unreadVariable" severity="style" msg="Variable 'arr[index]' is assigned a value that is never used." verbose="Variable 'arr[index]' is assigned a value that is never used." cwe="563" file0="/home/feng/test/math.c">
|
|
<location file="/home/feng/test/math.c" line="1393" column="16"/>
|
|
<symbol>arr[index]</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'absolute_value' is never used." verbose="The function 'absolute_value' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="52" column="0"/>
|
|
<symbol>absolute_value</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'add' is never used." verbose="The function 'add' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="11" column="0"/>
|
|
<symbol>add</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'arccosine' is never used." verbose="The function 'arccosine' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="90" column="0"/>
|
|
<symbol>arccosine</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'arcsine' is never used." verbose="The function 'arcsine' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="80" column="0"/>
|
|
<symbol>arcsine</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'arctangent' is never used." verbose="The function 'arctangent' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="100" column="0"/>
|
|
<symbol>arctangent</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'backward_difference' is never used." verbose="The function 'backward_difference' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="227" column="0"/>
|
|
<symbol>backward_difference</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'binary_search' is never used." verbose="The function 'binary_search' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="455" column="0"/>
|
|
<symbol>binary_search</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'bubble_sort' is never used." verbose="The function 'bubble_sort' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="322" column="0"/>
|
|
<symbol>bubble_sort</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'calculate_all' is never used." verbose="The function 'calculate_all' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="925" column="0"/>
|
|
<symbol>calculate_all</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'calculate_average' is never used." verbose="The function 'calculate_average' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="677" column="0"/>
|
|
<symbol>calculate_average</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'central_difference' is never used." verbose="The function 'central_difference' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="232" column="0"/>
|
|
<symbol>central_difference</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'character_type' is never used." verbose="The function 'character_type' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="494" column="0"/>
|
|
<symbol>character_type</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'circle_area' is never used." verbose="The function 'circle_area' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="624" column="0"/>
|
|
<symbol>circle_area</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'contains_substring' is never used." verbose="The function 'contains_substring' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="917" column="0"/>
|
|
<symbol>contains_substring</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'cosine' is never used." verbose="The function 'cosine' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="70" column="0"/>
|
|
<symbol>cosine</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'count_char_occurrences' is never used." verbose="The function 'count_char_occurrences' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="906" column="0"/>
|
|
<symbol>count_char_occurrences</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'count_digits' is never used." verbose="The function 'count_digits' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="640" column="0"/>
|
|
<symbol>count_digits</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'count_words' is never used." verbose="The function 'count_words' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="696" column="0"/>
|
|
<symbol>count_words</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'create_polynomial' is never used." verbose="The function 'create_polynomial' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="117" column="0"/>
|
|
<symbol>create_polynomial</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'create_queue' is never used." verbose="The function 'create_queue' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="238" column="0"/>
|
|
<symbol>create_queue</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'cube' is never used." verbose="The function 'cube' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="845" column="0"/>
|
|
<symbol>cube</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'divide' is never used." verbose="The function 'divide' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="26" column="0"/>
|
|
<symbol>divide</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'ends_with' is never used." verbose="The function 'ends_with' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="897" column="0"/>
|
|
<symbol>ends_with</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'evaluate_polynomial' is never used." verbose="The function 'evaluate_polynomial' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="145" column="0"/>
|
|
<symbol>evaluate_polynomial</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'exponential' is never used." verbose="The function 'exponential' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="106" column="0"/>
|
|
<symbol>exponential</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'find_max' is never used." verbose="The function 'find_max' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="652" column="0"/>
|
|
<symbol>find_max</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'find_min' is never used." verbose="The function 'find_min' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="666" column="0"/>
|
|
<symbol>find_min</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'find_polynomial_roots' is never used." verbose="The function 'find_polynomial_roots' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="161" column="0"/>
|
|
<symbol>find_polynomial_roots</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'force_out_of_bound_access' is never used." verbose="The function 'force_out_of_bound_access' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1390" column="0"/>
|
|
<symbol>force_out_of_bound_access</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'forward_difference' is never used." verbose="The function 'forward_difference' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="222" column="0"/>
|
|
<symbol>forward_difference</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'free_polynomial' is never used." verbose="The function 'free_polynomial' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="137" column="0"/>
|
|
<symbol>free_polynomial</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'free_queue' is never used." verbose="The function 'free_queue' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="250" column="0"/>
|
|
<symbol>free_queue</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'insertion_sort' is never used." verbose="The function 'insertion_sort' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="350" column="0"/>
|
|
<symbol>insertion_sort</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'integer_division_by_zero' is never used." verbose="The function 'integer_division_by_zero' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1051" column="0"/>
|
|
<symbol>integer_division_by_zero</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_21st_century' is never used." verbose="The function 'is_21st_century' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="781" column="0"/>
|
|
<symbol>is_21st_century</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_alphabetic' is never used." verbose="The function 'is_alphabetic' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="732" column="0"/>
|
|
<symbol>is_alphabetic</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_digit' is never used." verbose="The function 'is_digit' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="747" column="0"/>
|
|
<symbol>is_digit</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_finite' is never used." verbose="The function 'is_finite' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1032" column="0"/>
|
|
<symbol>is_finite</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_infinite' is never used." verbose="The function 'is_infinite' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="992" column="0"/>
|
|
<symbol>is_infinite</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_lowercase' is never used." verbose="The function 'is_lowercase' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="770" column="0"/>
|
|
<symbol>is_lowercase</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_nan' is never used." verbose="The function 'is_nan' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="997" column="0"/>
|
|
<symbol>is_nan</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_negative_infinite' is never used." verbose="The function 'is_negative_infinite' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1022" column="0"/>
|
|
<symbol>is_negative_infinite</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_non_negative' is never used." verbose="The function 'is_non_negative' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1048" column="0"/>
|
|
<symbol>is_non_negative</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_non_positive' is never used." verbose="The function 'is_non_positive' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1056" column="0"/>
|
|
<symbol>is_non_positive</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_normal_natural_even' is never used." verbose="The function 'is_normal_natural_even' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1291" column="0"/>
|
|
<symbol>is_normal_natural_even</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_normal_natural_odd' is never used." verbose="The function 'is_normal_natural_odd' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1301" column="0"/>
|
|
<symbol>is_normal_natural_odd</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_normal_negative' is never used." verbose="The function 'is_normal_negative' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1231" column="0"/>
|
|
<symbol>is_normal_negative</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_normal_negative_even' is never used." verbose="The function 'is_normal_negative_even' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1271" column="0"/>
|
|
<symbol>is_normal_negative_even</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_normal_negative_float' is never used." verbose="The function 'is_normal_negative_float' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1321" column="0"/>
|
|
<symbol>is_normal_negative_float</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_normal_negative_integer' is never used." verbose="The function 'is_normal_negative_integer' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1341" column="0"/>
|
|
<symbol>is_normal_negative_integer</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_normal_negative_odd' is never used." verbose="The function 'is_normal_negative_odd' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1281" column="0"/>
|
|
<symbol>is_normal_negative_odd</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_normal_negative_perfect_cube' is never used." verbose="The function 'is_normal_negative_perfect_cube' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1381" column="0"/>
|
|
<symbol>is_normal_negative_perfect_cube</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_normal_positive' is never used." verbose="The function 'is_normal_positive' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1221" column="0"/>
|
|
<symbol>is_normal_positive</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_normal_positive_even' is never used." verbose="The function 'is_normal_positive_even' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1251" column="0"/>
|
|
<symbol>is_normal_positive_even</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_normal_positive_float' is never used." verbose="The function 'is_normal_positive_float' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1311" column="0"/>
|
|
<symbol>is_normal_positive_float</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_normal_positive_integer' is never used." verbose="The function 'is_normal_positive_integer' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1331" column="0"/>
|
|
<symbol>is_normal_positive_integer</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_normal_positive_odd' is never used." verbose="The function 'is_normal_positive_odd' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1261" column="0"/>
|
|
<symbol>is_normal_positive_odd</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_normal_positive_perfect_cube' is never used." verbose="The function 'is_normal_positive_perfect_cube' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1371" column="0"/>
|
|
<symbol>is_normal_positive_perfect_cube</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_normal_positive_perfect_square' is never used." verbose="The function 'is_normal_positive_perfect_square' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1361" column="0"/>
|
|
<symbol>is_normal_positive_perfect_square</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_normal_positive_prime' is never used." verbose="The function 'is_normal_positive_prime' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1351" column="0"/>
|
|
<symbol>is_normal_positive_prime</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_normal_zero' is never used." verbose="The function 'is_normal_zero' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1241" column="0"/>
|
|
<symbol>is_normal_zero</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_palindrome' is never used." verbose="The function 'is_palindrome' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="629" column="0"/>
|
|
<symbol>is_palindrome</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_positive_infinite' is never used." verbose="The function 'is_positive_infinite' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1012" column="0"/>
|
|
<symbol>is_positive_infinite</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_positive_natural' is never used." verbose="The function 'is_positive_natural' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1171" column="0"/>
|
|
<symbol>is_positive_natural</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_representable' is never used." verbose="The function 'is_representable' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1037" column="0"/>
|
|
<symbol>is_representable</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_uppercase' is never used." verbose="The function 'is_uppercase' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="758" column="0"/>
|
|
<symbol>is_uppercase</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_valid_date' is never used." verbose="The function 'is_valid_date' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="824" column="0"/>
|
|
<symbol>is_valid_date</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_vowel' is never used." verbose="The function 'is_vowel' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="579" column="0"/>
|
|
<symbol>is_vowel</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_within_range' is never used." verbose="The function 'is_within_range' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="954" column="0"/>
|
|
<symbol>is_within_range</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_zero_or_negative' is never used." verbose="The function 'is_zero_or_negative' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1146" column="0"/>
|
|
<symbol>is_zero_or_negative</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'is_zero_or_positive' is never used." verbose="The function 'is_zero_or_positive' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="1141" column="0"/>
|
|
<symbol>is_zero_or_positive</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'linear_search' is never used." verbose="The function 'linear_search' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="445" column="0"/>
|
|
<symbol>linear_search</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'max' is never used." verbose="The function 'max' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="879" column="0"/>
|
|
<symbol>max</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'min' is never used." verbose="The function 'min' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="869" column="0"/>
|
|
<symbol>min</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'multiply' is never used." verbose="The function 'multiply' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="21" column="0"/>
|
|
<symbol>multiply</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'number_interval' is never used." verbose="The function 'number_interval' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="472" column="0"/>
|
|
<symbol>number_interval</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'number_relationship' is never used." verbose="The function 'number_relationship' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="535" column="0"/>
|
|
<symbol>number_relationship</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'piecewise_function' is never used." verbose="The function 'piecewise_function' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="517" column="0"/>
|
|
<symbol>piecewise_function</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'power' is never used." verbose="The function 'power' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="36" column="0"/>
|
|
<symbol>power</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'queue_dequeue' is never used." verbose="The function 'queue_dequeue' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="284" column="0"/>
|
|
<symbol>queue_dequeue</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'queue_enqueue' is never used." verbose="The function 'queue_enqueue' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="268" column="0"/>
|
|
<symbol>queue_enqueue</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'queue_front' is never used." verbose="The function 'queue_front' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="304" column="0"/>
|
|
<symbol>queue_front</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'queue_rear' is never used." verbose="The function 'queue_rear' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="313" column="0"/>
|
|
<symbol>queue_rear</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'rectangle_area' is never used." verbose="The function 'rectangle_area' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="614" column="0"/>
|
|
<symbol>rectangle_area</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'round_to_nearest' is never used." verbose="The function 'round_to_nearest' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="57" column="0"/>
|
|
<symbol>round_to_nearest</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'selection_sort' is never used." verbose="The function 'selection_sort' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="335" column="0"/>
|
|
<symbol>selection_sort</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'simple_calculator' is never used." verbose="The function 'simple_calculator' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="712" column="0"/>
|
|
<symbol>simple_calculator</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'simpson_rule' is never used." verbose="The function 'simpson_rule' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="204" column="0"/>
|
|
<symbol>simpson_rule</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'sine' is never used." verbose="The function 'sine' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="65" column="0"/>
|
|
<symbol>sine</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'square' is never used." verbose="The function 'square' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="588" column="0"/>
|
|
<symbol>square</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'square_root' is never used." verbose="The function 'square_root' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="41" column="0"/>
|
|
<symbol>square_root</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'starts_with' is never used." verbose="The function 'starts_with' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="889" column="0"/>
|
|
<symbol>starts_with</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'subtract' is never used." verbose="The function 'subtract' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="16" column="0"/>
|
|
<symbol>subtract</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'tangent' is never used." verbose="The function 'tangent' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="75" column="0"/>
|
|
<symbol>tangent</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'traffic_light' is never used." verbose="The function 'traffic_light' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="548" column="0"/>
|
|
<symbol>traffic_light</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'trapezoidal_rule' is never used." verbose="The function 'trapezoidal_rule' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="186" column="0"/>
|
|
<symbol>trapezoidal_rule</symbol>
|
|
</error>
|
|
<error id="unusedFunction" severity="style" msg="The function 'triangle_area' is never used." verbose="The function 'triangle_area' is never used." cwe="561">
|
|
<location file="/home/feng/test/math.c" line="619" column="0"/>
|
|
<symbol>triangle_area</symbol>
|
|
</error>
|
|
<error id="missingIncludeSystem" severity="information" msg="Cppcheck cannot find all the include files (use --check-config for details)" verbose="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."/>
|
|
</errors>
|
|
</results>
|