]>
Commit | Line | Data |
---|---|---|
885824d3 | 1 | |
e12110be | 2 | Cannot find standard library: ansi.lcd |
3 | Check LARCH_PATH environment variable. | |
885824d3 | 4 | charlit.c: (in function f) |
5 | charlit.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.) | |
9 | charlit.c:6:7: Incompatible types for + (int, char): x + 'c' | |
5caadb51 | 10 | charlit.c:8:10: Return value type char does not match declared type int: 'a' |
11 | charlit.c:12:14: Variable u initialized to type int, expects unsigned int: -3 | |
12 | To ignore signs in type comparisons use +ignoresigns | |
13 | ||
14 | Finished LCLint checking --- 4 code errors found, as expected | |
15 | ||
e12110be | 16 | Cannot find standard library: ansi.lcd |
17 | Check LARCH_PATH environment variable. | |
5caadb51 | 18 | charlit.c: (in function f) |
19 | charlit.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.) | |
23 | charlit.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. | |
26 | charlit.c:6:7: Incompatible types for + (int, char): x + 'c' | |
27 | charlit.c:8:10: Return value type char does not match declared type int: 'a' | |
28 | charlit.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. | |
30 | charlit.c:12:14: Variable u initialized to type int, expects unsigned int: -3 | |
31 | To ignore signs in type comparisons use +ignoresigns | |
32 | ||
33 | Finished LCLint checking --- 6 code errors found, as expected | |
34 | ||
e12110be | 35 | Cannot find standard library: ansi.lcd |
36 | Check LARCH_PATH environment variable. | |
37 | ||
5caadb51 | 38 | Finished LCLint checking --- no code errors found |