Various minor fixes for compiler/linter (other then splint itself) warnings.
[splint-patched.git] / test / tests2.5.expect
blob6a412da1b6fb2fbbcad24658da7bb98f0b1ec975
2 Finished checking --- no warnings
4 boolt.c: (in function test)
5 boolt.c:7:16: Function test expects arg 1 to be pan_bool_t gets int: 2
7 Finished checking --- 1 code warning, as expected
9 uconstants.c: (in function f)
10 uconstants.c:2:16: Variable x0 declared but not used
11 uconstants.c:3:21: Variable x1 declared but not used
13 Finished checking --- 2 code warnings, as expected
15 badcomment.c:1:4: Unrecognized option in semantic comment: PRIVATE
16 badcomment.c:1:4: Unrecognized option in semantic comment: CALLS
17 badcomment.c:1:4: Unrecognized option in semantic comment: 
19 Finished checking --- 3 code warnings, as expected
21 hoof.c: (in function main)
22 hoof.c:12:16: Function init_arr expects arg 2 to be long int * gets int *: &j
24 Finished checking --- 1 code warning, as expected
26 Finished checking --- no warnings
28 Finished checking --- no warnings
30 booltest.c: (in function f)
31 booltest.c:8:7: Test expression for if not bool, type int: i
32 booltest.c:9:12: Return value type int does not match declared type bool: i
34 Finished checking --- 2 code warnings, as expected
36 Finished checking --- no warnings
38 booltest.c: (in function f)
39 booltest.c:9:12: Return value type int does not match declared type bool: i
41 Finished checking --- 1 code warning, as expected
43 Finished checking --- no warnings
45 Finished checking --- no warnings
47 immutable.c: (in function immutable_create)
48 immutable.c:7:6: Arrow access from possibly null pointer res: res->x
49    immutable.c:5:19: Storage res may become null
50 immutable.c:8:10: Fresh storage returned as unqualified (should be only): res
51    immutable.c:5:54: Fresh storage res created
53 Finished checking --- 2 code warnings, as expected
55 impabsmodule.c: (in function isTwo)
56 impabsmodule.c:10:7: Variable var used before definition
57 impabsmodule.c:10:12: Variable var2 used before definition
59 Finished checking --- 2 code warnings, as expected