]>
Commit | Line | Data |
---|---|---|
a469ccf0 | 1 | make -e clean |
2 | make -e check | |
885824d3 | 3 | |
885824d3 | 4 | employee.c: (in function employee_setName) |
3120b462 | 5 | employee.c:17: Parameter 1 (e->name) to function strcpy is declared unique but |
885824d3 | 6 | may be aliased externally by parameter 2 (na) |
885824d3 | 7 | eref.c: (in function eref_alloc) |
8 | eref.c:19: Unqualified storage eref_Pool.conts passed as only param: | |
9 | realloc (eref_Pool.conts, ...) | |
10 | eref.c:29: Unqualified storage eref_Pool.status passed as only param: | |
11 | realloc (eref_Pool.status, ...) | |
12 | eref.c:45: Storage eref_Pool.status reachable from global is only (should be | |
13 | unqualified) | |
14 | eref.c:30: Storage eref_Pool.status becomes only | |
15 | eref.c:45: Storage eref_Pool.conts reachable from global is only (should be | |
16 | unqualified) | |
17 | eref.c:20: Storage eref_Pool.conts becomes only | |
18 | eref.c: (in function eref_initMod) | |
19 | eref.c:84: Storage eref_Pool.conts reachable from global is fresh (should be | |
20 | unqualified) | |
21 | eref.c:62: Fresh storage eref_Pool.conts allocated | |
3120b462 | 22 | eref.c:84: Global storage *(eref_Pool.conts) contains 5 undefined fields when |
23 | call returns: ssNum, name, salary, gen, j | |
885824d3 | 24 | eref.c:84: Storage eref_Pool.status reachable from global is fresh (should be |
25 | unqualified) | |
26 | eref.c:70: Fresh storage eref_Pool.status allocated | |
27 | eref.c:84: Global storage eref_Pool contains 1 undefined field when call | |
28 | returns: status | |
885824d3 | 29 | erc.c: (in function erc_create) |
30 | erc.c:33: Null storage c->vals derivable from return value: c | |
31 | erc.c:31: Storage c->vals becomes null | |
32 | erc.c:33: Fresh storage returned as unqualified (should be only): c | |
33 | erc.c:23: Fresh storage c allocated | |
34 | erc.c: (in function erc_clear) | |
35 | erc.c:49: Function returns with null storage derivable from parameter c->vals | |
36 | erc.c:47: Storage c->vals becomes null | |
37 | erc.c: (in function erc_final) | |
38 | erc.c:54: Implicitly temp storage c passed as only param: free (c) | |
39 | erc.c: (in function erc_delete) | |
40 | erc.c:102: Released storage c->vals reachable from parameter at return point | |
41 | erc.c:100: Storage c->vals is released | |
42 | erc.c: (in function erc_sprint) | |
43 | erc.c:141: Fresh storage returned as unqualified (should be only): result | |
44 | erc.c:122: Fresh storage result allocated | |
885824d3 | 45 | |
46 | Finished LCLint checking --- 15 code errors found, as expected | |
47 | ||
885824d3 | 48 | employee.c: (in function employee_setName) |
3120b462 | 49 | employee.c:17: Parameter 1 (e->name) to function strcpy is declared unique but |
885824d3 | 50 | may be aliased externally by parameter 2 (na) |
885824d3 | 51 | eref.c: (in function eref_initMod) |
80ee600a | 52 | eref.c:62: Implicitly only storage eref_Pool.conts (type employee *) not |
53 | released before assignment: eref_Pool.conts = (employee *)malloc(size * | |
54 | sizeof(employee)) | |
55 | eref.c:70: Implicitly only storage eref_Pool.status (type eref_status *) not | |
56 | released before assignment: eref_Pool.status = (eref_status *)malloc(size * | |
885824d3 | 57 | sizeof(eref_status)) |
3120b462 | 58 | eref.c:84: Global storage *(eref_Pool.conts) contains 5 undefined fields when |
59 | call returns: ssNum, name, salary, gen, j | |
885824d3 | 60 | eref.c:84: Global storage eref_Pool contains 1 undefined field when call |
61 | returns: status | |
885824d3 | 62 | empset.c: (in function empset_intersect) |
63 | empset.c:126: Fresh storage toDelete not released before return | |
64 | empset.c:112: Fresh storage toDelete allocated | |
885824d3 | 65 | erc.c: (in function erc_create) |
66 | erc.c:33: Null storage c->vals derivable from return value: c | |
67 | erc.c:31: Storage c->vals becomes null | |
68 | erc.c: (in function erc_clear) | |
69 | erc.c:49: Function returns with null storage derivable from parameter c->vals | |
70 | erc.c:47: Storage c->vals becomes null | |
71 | erc.c: (in function erc_final) | |
72 | erc.c:54: Implicitly temp storage c passed as only param: free (c) | |
73 | erc.c: (in function erc_delete) | |
80ee600a | 74 | erc.c:98: Implicitly only storage prev->next (type struct _elem *) not released |
75 | before assignment: prev->next = elem->next | |
885824d3 | 76 | erc.c:98: Clauses exit with elem referencing implicitly only storage in true |
77 | branch, local storage in false branch | |
78 | erc.c:96: Storage elem becomes implicitly only | |
885824d3 | 79 | erc.c:102: Released storage c->vals reachable from parameter at return point |
80 | erc.c:100: Storage c->vals is released | |
885824d3 | 81 | drive.c: (in function main) |
82 | drive.c:49: Variable m_res name is not a macro variable (it is a local | |
83 | variable), but matches the macro variable namespace prefix "m_" | |
84 | drive.c:65: Variable m_res name is not a macro variable (it is a local | |
85 | variable), but matches the macro variable namespace prefix "m_" | |
86 | drive.c:83: Variable m_res name is not a macro variable (it is a local | |
87 | variable), but matches the macro variable namespace prefix "m_" | |
88 | drive.c:120: Variable m_res name is not a macro variable (it is a local | |
89 | variable), but matches the macro variable namespace prefix "m_" | |
90 | drive.c:124: Variable m_res name is not a macro variable (it is a local | |
91 | variable), but matches the macro variable namespace prefix "m_" | |
92 | drive.c:135: Variable m_res name is not a macro variable (it is a local | |
93 | variable), but matches the macro variable namespace prefix "m_" | |
80ee600a | 94 | drive.c:140: Fresh storage em1 (type empset) not released before assignment: |
885824d3 | 95 | em1 = empset_create() |
96 | drive.c:35: Fresh storage em1 allocated | |
80ee600a | 97 | drive.c:146: Fresh storage em2 (type empset) not released before assignment: |
885824d3 | 98 | em2 = empset_create() |
99 | drive.c:74: Fresh storage em2 allocated | |
80ee600a | 100 | drive.c:147: Fresh storage em3 (type empset) not released before assignment: |
885824d3 | 101 | em3 = empset_disjointUnion(em2, em1) |
102 | drive.c:87: Fresh storage em3 allocated | |
103 | drive.c:159: Variable m_res name is not a macro variable (it is a local | |
104 | variable), but matches the macro variable namespace prefix "m_" | |
105 | drive.c:163: Fresh storage em1 not released before return | |
106 | drive.c:140: Fresh storage em1 allocated | |
107 | drive.c:163: Fresh storage em2 not released before return | |
108 | drive.c:146: Fresh storage em2 allocated | |
109 | drive.c:163: Fresh storage em3 not released before return | |
110 | drive.c:147: Fresh storage em3 allocated | |
885824d3 | 111 | |
3120b462 | 112 | Finished LCLint checking --- 25 code errors found, as expected |
113 | ||
3120b462 | 114 | Finished LCLint checking --- no code errors found |