]> andersk Git - splint.git/blame - test/charlit.out
Tried to fix more problmes with the Makefiles
[splint.git] / test / charlit.out
CommitLineData
885824d3 1
e12110be 2Cannot find standard library: ansi.lcd
3 Check LARCH_PATH environment variable.
885824d3 4charlit.c: (in function f)
5charlit.c:3:11: Variable x initialized to type char, expects int: 'a'
6 A character constant is used as an int. Use +charintliteral to allow
7 character constants to be used as ints. (This is safe since the actual type
8 of a char constant is int.)
9charlit.c:6:7: Incompatible types for + (int, char): x + 'c'
5caadb51 10charlit.c:8:10: Return value type char does not match declared type int: 'a'
11charlit.c:12:14: Variable u initialized to type int, expects unsigned int: -3
12 To ignore signs in type comparisons use +ignoresigns
13
14Finished LCLint checking --- 4 code errors found, as expected
15
e12110be 16Cannot find standard library: ansi.lcd
17 Check LARCH_PATH environment variable.
5caadb51 18charlit.c: (in function f)
19charlit.c:3:11: Variable x initialized to type char, expects int: 'a'
20 A character constant is used as an int. Use +charintliteral to allow
21 character constants to be used as ints. (This is safe since the actual type
22 of a char constant is int.)
23charlit.c:4:14: Variable z initialized to type int, expects double: 3
24 An int literal is used as any numeric type (including float and long long).
25 Use +numliteral to allow int literals to be used as any numeric type.
26charlit.c:6:7: Incompatible types for + (int, char): x + 'c'
27charlit.c:8:10: Return value type char does not match declared type int: 'a'
28charlit.c:11:18: Initial value of s[1] is type int, expects short int: -1
29 To ignore type qualifiers in type comparisons use +ignorequals.
30charlit.c:12:14: Variable u initialized to type int, expects unsigned int: -3
31 To ignore signs in type comparisons use +ignoresigns
32
33Finished LCLint checking --- 6 code errors found, as expected
34
e12110be 35Cannot find standard library: ansi.lcd
36 Check LARCH_PATH environment variable.
37
5caadb51 38Finished LCLint checking --- no code errors found
This page took 0.054863 seconds and 5 git commands to generate.