]>
Commit | Line | Data |
---|---|---|
a469ccf0 | 1 | make -e clean |
2 | make -e check | |
885824d3 | 3 | |
885824d3 | 4 | employee.c: (in function employee_equal) |
3120b462 | 5 | employee.c:25: Function strncmp expects arg 3 to be size_t gets int: |
885824d3 | 6 | maxEmployeeName |
885824d3 | 7 | empset.c: (in function empset_insert) |
8 | empset.c:28: Variable er declared but not used | |
9 | empset.c: (in function empset_disjointUnion) | |
10 | empset.c:85: Undocumented modification of s1 possible from call to | |
11 | erc_iterStart (through alias s2): erc_iterStart(s2) | |
12 | empset.c:85: Undocumented modification of s2 possible from call to | |
13 | erc_iterStart: erc_iterStart(s2) | |
14 | empset.c: (in function empset_union) | |
15 | empset.c:108: Undocumented modification of s2 possible from call to | |
16 | erc_iterStart (through alias s1): erc_iterStart(s1) | |
17 | empset.c:108: Undocumented modification of s1 possible from call to | |
18 | erc_iterStart: erc_iterStart(s1) | |
19 | empset.c: (in function empset_subset) | |
20 | empset.c:139: Undocumented modification of s1 possible from call to | |
21 | erc_iterStart: erc_iterStart(s1) | |
22 | empset.c:135: Variable e declared but not used | |
885824d3 | 23 | ereftab.c: (in function ereftab_lookup) |
24 | ereftab.c:34: Undocumented modification of t possible from call to | |
25 | erc_iterStart: erc_iterStart(t) | |
885824d3 | 26 | erc.c: (in function erc_member) |
27 | erc.c:47: Operands of == are abstract type (eref): tmpc->val == er | |
28 | erc.c: (in function erc_delete) | |
29 | erc.c:78: Operands of == are abstract type (eref): elem->val == er | |
30 | erc.c: (in function erc_sprint) | |
31 | erc.c:141: Function malloc expects arg 1 to be size_t gets int: | |
32 | erc_size(c) * (employeePrintSize + 1) + 1 | |
33 | erc.c:151: Undocumented modification of c possible from call to erc_iterStart: | |
34 | erc_iterStart(c) | |
885824d3 | 35 | dbase.c: (in function query) |
36 | dbase.c:210: Variable er declared but not used | |
37 | dbase.c:211: Variable e declared but not used | |
885824d3 | 38 | drive.c: (in function main) |
39 | drive.c:123: Return value (type db_status) ignored: hire(e) | |
885824d3 | 40 | |
11db3170 | 41 | Finished checking --- 16 code warnings, as expected |
885824d3 | 42 | |
27c9e640 | 43 | employee.h:2: Name EMPLOYEE_H is reserved for future library extensions. Macros |
885824d3 | 44 | beginning with E and a digit or uppercase letter may be added to <errno.h>. |
27c9e640 | 45 | (ISO99:7.26.3) |
46 | eref.h:2: Name EREF_H is reserved for future library extensions. Macros | |
885824d3 | 47 | beginning with E and a digit or uppercase letter may be added to <errno.h>. |
27c9e640 | 48 | (ISO99:7.26.3) |
49 | empset.h:2: Name EMPSET_H is reserved for future library extensions. Macros | |
50 | beginning with E and a digit or uppercase letter may be added to <errno.h>. | |
51 | (ISO99:7.26.3) | |
52 | erc.h:2: Name ERC_H is reserved for future library extensions. Macros beginning | |
53 | with E and a digit or uppercase letter may be added to <errno.h>. | |
54 | (ISO99:7.26.3) | |
55 | ereftab.h:4: Name EREFTAB_H is reserved for future library extensions. Macros | |
56 | beginning with E and a digit or uppercase letter may be added to <errno.h>. | |
57 | (ISO99:7.26.3) | |
885824d3 | 58 | bool.h:20: Modifies list for bool_initMod uses global internal state, not |
59 | included in globals list. | |
60 | bool.h:20: Declaration of bool_initMod | |
3120b462 | 61 | employee.h:12: Declaration parameter has name: p_e |
62 | employee.c:5: Definition parameter name e does not match name of corresponding | |
63 | parameter in declaration: p_e | |
64 | employee.h:12: Previous declaration of p_e | |
885824d3 | 65 | employee.c: (in function employee_setName) |
3e3ec469 | 66 | employee.c:12: Undefined storage e->name corresponds to storage listed in sets |
67 | clause | |
68 | This sub-reference is undefined: *(e->name) | |
3120b462 | 69 | employee.c:12: Body of if statement is not a block: return FALSE |
70 | employee.c:15: Parameter 1 (e->name) to function strcpy is declared unique but | |
885824d3 | 71 | may be aliased externally by parameter 2 (na) |
72 | employee.c: (in function employee_equal) | |
3120b462 | 73 | employee.c:25: Function strncmp expects arg 3 to be size_t gets int: |
885824d3 | 74 | maxEmployeeName |
75 | employee.c: (in function employee_sprint) | |
3120b462 | 76 | employee.c:30: Read-only string literal storage used as initial value for |
885824d3 | 77 | unqualified storage: gender[0] = "male" |
3120b462 | 78 | employee.c:30: Read-only string literal storage used as initial value for |
885824d3 | 79 | unqualified storage: gender[1] = "female" |
885824d3 | 80 | employee.c:30: Read-only string literal storage used as initial value for |
3120b462 | 81 | unqualified storage: gender[2] = "?" |
82 | employee.c:31: Read-only string literal storage used as initial value for | |
885824d3 | 83 | unqualified storage: jobs[0] = "manager" |
3120b462 | 84 | employee.c:31: Read-only string literal storage used as initial value for |
885824d3 | 85 | unqualified storage: jobs[1] = "non-manager" |
3120b462 | 86 | employee.c:31: Read-only string literal storage used as initial value for |
885824d3 | 87 | unqualified storage: jobs[2] = "?" |
3120b462 | 88 | employee.c:34: Array fetch using non-integer, gender: gender[e.gen] |
89 | employee.c:34: Array fetch using non-integer, job: jobs[e.j] | |
885824d3 | 90 | employee.h: (in macro employee_initMod) |
3e3ec469 | 91 | employee.h:15: Called procedure bool_initMod may access internal state, but |
885824d3 | 92 | globals list does not include globals internalState |
3e3ec469 | 93 | employee.h:15: Undocumented modification of internal state possible from call |
885824d3 | 94 | to bool_initMod: bool_initMod() |
885824d3 | 95 | eref.h:9: Constant exported, but not specified: used |
96 | eref.h:9: Constant exported, but not specified: avail | |
97 | eref.h:9: Type exported, but not specified: eref_status | |
98 | eref.h:14: Type exported, but not specified: eref_ERP | |
99 | eref.h:17: Variable exported, but not specified: eref_Pool | |
100 | eref.c: (in function eref_alloc) | |
101 | eref.c:12: Undocumented use of global eref_Pool | |
102 | eref.c:12: Undocumented use of global eref_Pool | |
103 | eref.c:12: Body of for statement is empty | |
104 | eref.c:12: Undocumented use of global eref_Pool (in post loop test) | |
105 | eref.c:16: Undocumented use of global eref_Pool | |
106 | eref.c:18: Undocumented use of global eref_Pool | |
107 | eref.c:19: Undocumented use of global eref_Pool | |
108 | eref.c:20: Undocumented use of global eref_Pool | |
109 | eref.c:20: Parameter to sizeof is type employee: sizeof(employee) | |
110 | eref.c:19: Undocumented modification of *(eref_Pool.conts) possible from call | |
111 | to realloc: realloc(eref_Pool.conts, 2 * eref_Pool.size * sizeof(employee)) | |
112 | eref.c:18: Undocumented modification of eref_Pool.conts: | |
113 | eref_Pool.conts = (employee *)realloc(eref_Pool.conts, 2 * eref_Pool.size * | |
114 | sizeof(employee)) | |
115 | eref.c:22: Undocumented use of global eref_Pool | |
116 | eref.c:25: Argument to exit has implementation defined behavior: 1 | |
117 | eref.c:28: Undocumented use of global eref_Pool | |
118 | eref.c:29: Undocumented use of global eref_Pool | |
119 | eref.c:30: Undocumented use of global eref_Pool | |
120 | eref.c:30: Parameter to sizeof is type eref_status: sizeof(eref_status) | |
121 | eref.c:29: Undocumented modification of *(eref_Pool.status) possible from call | |
122 | to realloc: realloc(eref_Pool.status, 2 * eref_Pool.size * | |
123 | sizeof(eref_status)) | |
124 | eref.c:28: Undocumented modification of eref_Pool.status: | |
125 | eref_Pool.status = (eref_status *)realloc(eref_Pool.status, 2 * | |
126 | eref_Pool.size * sizeof(eref_status)) | |
127 | eref.c:32: Undocumented use of global eref_Pool | |
128 | eref.c:35: Argument to exit has implementation defined behavior: 1 | |
129 | eref.c:38: Undocumented use of global eref_Pool | |
130 | eref.c:38: Undocumented use of global eref_Pool | |
131 | eref.c:38: Undocumented modification of eref_Pool.size: | |
132 | eref_Pool.size = 2 * eref_Pool.size | |
133 | eref.c:40: Undocumented use of global eref_Pool | |
134 | eref.c:41: Undocumented use of global eref_Pool | |
135 | eref.c:41: Undocumented modification of eref_Pool.status[]: | |
136 | eref_Pool.status[i] = avail | |
137 | eref.c:41: Body of for statement is not a block: eref_Pool.status[i] = avail | |
138 | eref.c:41: Undocumented use of global eref_Pool (in post loop test) | |
139 | eref.c:44: Undocumented use of global eref_Pool | |
140 | eref.c:44: Undocumented modification of eref_Pool.status[]: | |
141 | eref_Pool.status[res] = used | |
142 | eref.c: (in function eref_initMod) | |
143 | eref.c:53: Undocumented use of file static needsInit | |
144 | eref.c:58: Undocumented use of file static needsInit | |
145 | eref.c:58: Undocumented modification of needsInit: needsInit = FALSE | |
146 | eref.c:60: Statement has no effect: employee_initMod() | |
147 | eref.c:62: Undocumented use of global eref_Pool | |
148 | eref.c:62: Parameter to sizeof is type employee: sizeof(employee) | |
149 | eref.c:62: Undocumented modification of eref_Pool.conts: | |
150 | eref_Pool.conts = (employee *)malloc(size * sizeof(employee)) | |
80ee600a | 151 | eref.c:62: Implicitly only storage eref_Pool.conts (type employee *) not |
152 | released before assignment: eref_Pool.conts = (employee *)malloc(size * | |
153 | sizeof(employee)) | |
885824d3 | 154 | eref.c:64: Undocumented use of global eref_Pool |
155 | eref.c:67: Argument to exit has implementation defined behavior: 1 | |
156 | eref.c:70: Undocumented use of global eref_Pool | |
157 | eref.c:70: Parameter to sizeof is type eref_status: sizeof(eref_status) | |
158 | eref.c:70: Undocumented modification of eref_Pool.status: | |
159 | eref_Pool.status = (eref_status *)malloc(size * sizeof(eref_status)) | |
80ee600a | 160 | eref.c:70: Implicitly only storage eref_Pool.status (type eref_status *) not |
161 | released before assignment: eref_Pool.status = (eref_status *)malloc(size * | |
885824d3 | 162 | sizeof(eref_status)) |
163 | eref.c:72: Undocumented use of global eref_Pool | |
164 | eref.c:75: Argument to exit has implementation defined behavior: 1 | |
165 | eref.c:78: Undocumented use of global eref_Pool | |
166 | eref.c:78: Undocumented modification of eref_Pool.size: eref_Pool.size = size | |
167 | eref.c:82: Undocumented use of global eref_Pool | |
168 | eref.c:82: Undocumented modification of eref_Pool.status[]: | |
169 | eref_Pool.status[i] = avail | |
3120b462 | 170 | eref.c:84: Global storage *(eref_Pool.conts) contains 5 undefined fields when |
171 | call returns: ssNum, name, salary, gen, j | |
885824d3 | 172 | eref.c:84: Global storage eref_Pool contains 1 undefined field when call |
173 | returns: status | |
174 | eref.h: (in macro eref_free) | |
175 | eref.h:23: Undocumented use of global eref_Pool | |
176 | eref.h:23: Undocumented modification of eref_Pool.status[]: | |
177 | eref_Pool.status[er] = avail | |
178 | eref.h: (in macro eref_assign) | |
179 | eref.h:24: Undocumented use of global eref_Pool | |
180 | eref.h:24: Macro parameter used without parentheses: e | |
181 | eref.h:24: Undocumented modification of eref_Pool.conts[]: | |
182 | eref_Pool.conts[er] = e | |
183 | eref.h: (in macro eref_get) | |
184 | eref.h:25: Undocumented use of global eref_Pool | |
185 | eref.h: (in macro eref_equal) | |
186 | eref.h:26: Macro parameter used without parentheses: er1 | |
187 | eref.h:26: Macro parameter used without parentheses: er2 | |
80ee600a | 188 | erc.h:6: Name _elem is in the implementation name space (any identifier |
189 | beginning with underscore) | |
885824d3 | 190 | erc.h:6: Type exported, but not specified: ercElem |
191 | erc.h:7: Type exported, but not specified: ercList | |
192 | erc.h:8: Type exported, but not specified: ercInfo | |
193 | empset.h:10: Variable exported, but not specified: known | |
194 | empset.c:5: Name _empset_get is in the implementation name space (any | |
195 | identifier beginning with underscore) | |
196 | empset.c: (in function _empset_get) | |
197 | empset.c:11: Undocumented modification of s possible from call to | |
198 | erc_iterStart: erc_iterStart(s) | |
199 | empset.c:15: Body of if statement is not a block: | |
cc78dedd | 200 | do { { erc_iterFinal(it) } } while (FALSE) |
885824d3 | 201 | empset.c: (in function empset_insert) |
202 | empset.c:30: Undetected modification possible from call to unconstrained | |
203 | function _empset_get: _empset_get | |
204 | empset.c:28: Variable er declared but not used | |
205 | empset.c: (in function empset_insertUnique) | |
206 | empset.c:43: Undocumented use of global known | |
207 | empset.c:49: Undocumented use of global known | |
208 | empset.c:49: Undocumented modification of known possible from call to | |
209 | ereftab_insert: ereftab_insert(known, e, er) | |
210 | empset.c: (in function empset_delete) | |
211 | empset.c:59: Undetected modification possible from call to unconstrained | |
212 | function _empset_get: _empset_get | |
213 | empset.c: (in function empset_disjointUnion) | |
214 | empset.c:85: Undocumented modification of s1 possible from call to | |
215 | erc_iterStart (through alias s2): erc_iterStart(s2) | |
216 | empset.c:85: Undocumented modification of s2 possible from call to | |
217 | erc_iterStart: erc_iterStart(s2) | |
218 | empset.c:86: Body of for statement is not a block: | |
219 | empset_insertUnique(result, eref_get(er)) | |
220 | empset.c: (in function empset_union) | |
221 | empset.c:108: Undocumented modification of s2 possible from call to | |
222 | erc_iterStart (through alias s1): erc_iterStart(s1) | |
223 | empset.c:108: Undocumented modification of s1 possible from call to | |
224 | erc_iterStart: erc_iterStart(s1) | |
225 | empset.c:110: Body of if statement is not a block: erc_insert(result, er) | |
226 | empset.c:109: Body of for statement is not a block: | |
227 | if (!empset_member(eref_get(er), s2)) erc_insert(result, er) | |
228 | empset.c: (in function empset_intersect) | |
229 | empset.c:125: Body of if statement is not a block: erc_insert(toDelete, er) | |
230 | empset.c:124: Body of for statement is not a block: | |
231 | if (!empset_member(eref_get(er), s2)) erc_insert(toDelete, er) | |
232 | empset.c:128: Return value (type bool) ignored: erc_delete(s1, er) | |
233 | empset.c:128: Body of for statement is not a block: erc_delete(s1, er) | |
234 | empset.c: (in function empset_subset) | |
235 | empset.c:139: Undocumented modification of s1 possible from call to | |
236 | erc_iterStart: erc_iterStart(s1) | |
237 | empset.c:141: Body of if statement is not a block: | |
cc78dedd | 238 | do { { erc_iterFinal(it) } } while (FALSE) |
885824d3 | 239 | empset.c:140: Body of for statement is not a block: |
cc78dedd | 240 | if (!empset_member(eref_get(er), s2)) do { { erc_iterFinal(it) |
241 | } } while (FALSE) | |
885824d3 | 242 | empset.c:135: Variable e declared but not used |
243 | empset.c: (in function empset_initMod) | |
244 | empset.c:148: Undocumented use of file static initDone | |
245 | empset.c:148: Body of if statement is not a block: return | |
246 | empset.c:151: Statement has no effect: employee_initMod() | |
247 | empset.c:153: Statement has no effect: erc_initMod() | |
248 | empset.c:154: Statement has no effect: ereftab_initMod() | |
249 | empset.c:155: Undocumented use of global known | |
250 | empset.c:155: Undocumented modification of known: known = ereftab_create() | |
251 | empset.c:156: Undocumented use of file static initDone | |
252 | empset.c:156: Undocumented modification of initDone: initDone = TRUE | |
253 | empset.h: (in macro empset_member) | |
254 | empset.h:30: Undetected modification possible from call to unconstrained | |
255 | function _empset_get: _empset_get | |
885824d3 | 256 | ereftab.c: (in function ereftab_delete) |
257 | ereftab.c:24: Return value (type bool) ignored: erc_delete(t, er) | |
258 | ereftab.c: (in function ereftab_lookup) | |
259 | ereftab.c:34: Undocumented modification of t possible from call to | |
260 | erc_iterStart: erc_iterStart(t) | |
261 | ereftab.c:37: Body of if statement is not a block: return er | |
262 | ereftab.c: (in function ereftab_initMod) | |
263 | ereftab.c:47: Statement has no effect: erc_initMod() | |
885824d3 | 264 | erc.c: (in function erc_create) |
265 | erc.c:8: Parameter to sizeof is type ercInfo: sizeof(ercInfo) | |
266 | erc.c:13: Argument to exit has implementation defined behavior: 1 | |
267 | erc.c:18: Null storage c->vals derivable from return value: c | |
268 | erc.c:16: Storage c->vals becomes null | |
269 | erc.c:18: Fresh storage returned as unqualified (should be only): c | |
270 | erc.c:8: Fresh storage c allocated | |
271 | erc.c: (in function erc_clear) | |
272 | erc.c:34: Function returns with null storage derivable from parameter c->vals | |
273 | erc.c:32: Storage c->vals becomes null | |
274 | erc.c: (in function erc_final) | |
275 | erc.c:39: Implicitly temp storage c passed as only param: free (c) | |
276 | erc.c: (in function erc_member) | |
277 | erc.c:47: Operands of == are abstract type (eref): tmpc->val == er | |
278 | erc.c:47: Body of if statement is not a block: return TRUE | |
279 | erc.c:47: Body of for statement is not a block: | |
280 | if (tmpc->val == er) return TRUE | |
281 | erc.c: (in function erc_insert) | |
282 | erc.c:55: Parameter to sizeof is type ercElem: sizeof(ercElem) | |
283 | erc.c:60: Argument to exit has implementation defined behavior: 1 | |
284 | erc.c: (in function erc_delete) | |
285 | erc.c:78: Operands of == are abstract type (eref): elem->val == er | |
80ee600a | 286 | erc.c:83: Implicitly only storage prev->next (type struct _elem *) not released |
287 | before assignment: prev->next = elem->next | |
288 | erc.c:84: Clauses exit with elem referencing implicitly only storage in true | |
885824d3 | 289 | branch, local storage in false branch |
290 | erc.c:81: Storage elem becomes implicitly only | |
885824d3 | 291 | erc.c:87: Released storage c->vals reachable from parameter at return point |
292 | erc.c:85: Storage c->vals is released | |
293 | erc.c: (in function erc_iterStart) | |
294 | erc.c:98: Parameter to sizeof is type ercList: sizeof(ercList) | |
295 | erc.c:103: Argument to exit has implementation defined behavior: 1 | |
296 | erc.c:107: Fresh storage returned as unqualified (should be only): result | |
297 | erc.c:98: Fresh storage result allocated | |
298 | erc.c:108: Suspect object listed in modifies of erc_iterStart not modified: c | |
299 | erc.lcl:49: Specification of erc_iterStart | |
300 | erc.c: (in function erc_yield) | |
301 | erc.c:117: Implicitly temp storage it passed as only param: free (it) | |
302 | erc.c:117: Unreachable code: free(it) | |
303 | erc.c:118: Variable it is released in true branch, but live in continuation. | |
304 | erc.c:117: Storage it is released | |
305 | erc.c:121: Only storage *it->next assigned to unqualified: *(it) = (*it)->next | |
306 | erc.c: (in function erc_join) | |
307 | erc.c:130: Body of for statement is not a block: erc_insert(c1, tmpc->val) | |
308 | erc.c: (in function erc_sprint) | |
309 | erc.c:141: Function malloc expects arg 1 to be size_t gets int: | |
310 | erc_size(c) * (employeePrintSize + 1) + 1 | |
311 | erc.c:146: Argument to exit has implementation defined behavior: 1 | |
312 | erc.c:151: Undocumented modification of c possible from call to erc_iterStart: | |
313 | erc_iterStart(c) | |
314 | erc.c:159: Fresh storage returned as unqualified (should be only): result | |
315 | erc.c:140: Fresh storage result allocated | |
316 | erc.h: (in macro erc_choose) | |
317 | erc.h:15: Macro parameter used without parentheses: c | |
318 | erc.h: (in macro erc_initMod) | |
319 | erc.h:16: Called procedure bool_initMod may access internal state, but globals | |
320 | list does not include globals internalState | |
321 | erc.h:16: Undocumented modification of internal state possible from call to | |
322 | bool_initMod: bool_initMod() | |
323 | erc.h:16: Statement has no effect: employee_initMod() | |
324 | erc.h: (in macro erc_iterFinal) | |
80ee600a | 325 | erc.h:20: Only storage *it->next (type struct _elem *) derived from released |
326 | storage is not released (memory leak): it | |
885824d3 | 327 | erc.h:20: Implicitly temp storage it passed as only param: free (it) |
885824d3 | 328 | dbase.c: (in function db_initMod) |
329 | dbase.c:21: Undocumented use of global initDone | |
330 | dbase.c:27: Statement has no effect: employee_initMod() | |
331 | dbase.c:29: Statement has no effect: erc_initMod() | |
332 | dbase.c:30: Statement has no effect: empset_initMod() | |
333 | dbase.c:32: Assignment of enum { mMGRS, fMGRS, mNON, fNON } to int: i = mMGRS | |
334 | dbase.c:32: Operands of <= have incompatible types (int, enum { mMGRS, fMGRS, | |
335 | mNON, fNON }): i <= fNON | |
336 | dbase.c:34: Undocumented use of global db | |
337 | dbase.c:34: Undocumented modification of db[]: db[i] = erc_create() | |
338 | dbase.c:32: Incompatible types for <= (int, enum { mMGRS, fMGRS, mNON, fNON }) | |
339 | (in post loop test): i <= fNON | |
340 | dbase.c:37: Undocumented use of global initDone | |
341 | dbase.c:37: Undocumented modification of initDone: initDone = TRUE | |
342 | dbase.c:40: Name _db_ercKeyGet is in the implementation name space (any | |
343 | identifier beginning with underscore) | |
344 | dbase.c: (in function _db_ercKeyGet) | |
345 | dbase.c:45: Undocumented modification of c possible from call to erc_iterStart: | |
346 | erc_iterStart(c) | |
347 | dbase.c:56: Name _db_keyGet is in the implementation name space (any identifier | |
348 | beginning with underscore) | |
349 | dbase.c: (in function _db_keyGet) | |
350 | dbase.c:61: Assignment of enum { mMGRS, fMGRS, mNON, fNON } to int: i = mMGRS | |
351 | dbase.c:61: Operands of <= have incompatible types (int, enum { mMGRS, fMGRS, | |
352 | mNON, fNON }): i <= fNON | |
353 | dbase.c:63: Undocumented use of global db | |
354 | dbase.c:63: Undetected modification possible from call to unconstrained | |
355 | function _db_ercKeyGet: _db_ercKeyGet | |
356 | dbase.c:61: Incompatible types for <= (int, enum { mMGRS, fMGRS, mNON, fNON }) | |
357 | (in post loop test): i <= fNON | |
358 | dbase.c:73: Name _db_addEmpls is in the implementation name space (any | |
359 | identifier beginning with underscore) | |
360 | dbase.c: (in function _db_addEmpls) | |
361 | dbase.c:81: Undocumented modification of c possible from call to erc_iterStart: | |
362 | erc_iterStart(c) | |
363 | dbase.c:86: Undocumented modification of s possible from call to empset_insert: | |
364 | empset_insert(s, e) | |
365 | dbase.c:86: Return value (type bool) ignored: empset_insert(s, e) | |
366 | dbase.c: (in function hire) | |
367 | dbase.c:97: Body of if statement is not a block: return genderERR | |
368 | dbase.c:100: Body of if statement is not a block: return jobERR | |
369 | dbase.c:103: Body of if statement is not a block: return salERR | |
370 | dbase.c:105: Undetected modification possible from call to unconstrained | |
371 | function _db_keyGet: _db_keyGet | |
372 | dbase.c:106: Body of if statement is not a block: return duplERR | |
373 | dbase.c: (in function uncheckedHire) | |
374 | dbase.c:121: Undocumented use of global db | |
375 | dbase.c:121: Array fetch using non-integer, enum { mMGRS, fMGRS, mNON, fNON }: | |
376 | db[mMGRS] | |
377 | dbase.c:121: Undocumented modification of db[] possible from call to | |
378 | erc_insert: erc_insert(db[mMGRS], er) | |
379 | dbase.c:123: Undocumented use of global db | |
380 | dbase.c:123: Array fetch using non-integer, enum { mMGRS, fMGRS, mNON, fNON }: | |
381 | db[mNON] | |
382 | dbase.c:123: Undocumented modification of db[] possible from call to | |
383 | erc_insert: erc_insert(db[mNON], er) | |
384 | dbase.c:121: Body of if clause of if statement is not a block: | |
385 | erc_insert(db[mMGRS], er) | |
386 | dbase.c:123: Body of else clause of if statement is not a block: | |
387 | erc_insert(db[mNON], er) | |
388 | dbase.c:126: Undocumented use of global db | |
389 | dbase.c:126: Array fetch using non-integer, enum { mMGRS, fMGRS, mNON, fNON }: | |
390 | db[fMGRS] | |
391 | dbase.c:126: Undocumented modification of db[] possible from call to | |
392 | erc_insert: erc_insert(db[fMGRS], er) | |
393 | dbase.c:128: Undocumented use of global db | |
394 | dbase.c:128: Array fetch using non-integer, enum { mMGRS, fMGRS, mNON, fNON }: | |
395 | db[fNON] | |
396 | dbase.c:128: Undocumented modification of db[] possible from call to | |
397 | erc_insert: erc_insert(db[fNON], er) | |
398 | dbase.c:126: Body of if clause of if statement is not a block: | |
399 | erc_insert(db[fMGRS], er) | |
400 | dbase.c:128: Body of else clause of if statement is not a block: | |
401 | erc_insert(db[fNON], er) | |
402 | dbase.c:123: Body of if clause of if statement is not a block: | |
403 | if (e.j == MGR) erc_insert(db[mMGRS], er) else erc_insert(db[mNON], er) | |
404 | dbase.c: (in function fire) | |
405 | dbase.c:137: Assignment of enum { mMGRS, fMGRS, mNON, fNON } to int: i = mMGRS | |
406 | dbase.c:137: Operands of <= have incompatible types (int, enum { mMGRS, fMGRS, | |
407 | mNON, fNON }): i <= fNON | |
408 | dbase.c:138: Undocumented use of global db | |
409 | dbase.c:138: Undocumented modification of db[] possible from call to | |
410 | erc_iterStart: erc_iterStart(db[i]) | |
411 | dbase.c:142: Undocumented use of global db | |
412 | dbase.c:142: Undocumented modification of db[] possible from call to | |
413 | erc_delete: erc_delete(db[i], er) | |
414 | dbase.c:142: Return value (type bool) ignored: erc_delete(db[i]... | |
415 | dbase.c:139: Body of for statement is not a block: | |
416 | if (eref_get(er).ssNum == ssNum) { erc_iterFinal(it) } | |
417 | dbase.c:139: Body of for statement is not a block: | |
418 | for (er = erc_yield(it = erc_iterStart(db[i])); !eref_equal(er, erefNIL); | |
419 | er = erc_yield(it)) if (eref_get(er).ssNum == ssNum) { erc_iterFinal(it) } | |
420 | dbase.c:137: Incompatible types for <= (int, enum { mMGRS, fMGRS, mNON, fNON }) | |
421 | (in post loop test): i <= fNON | |
422 | dbase.c: (in function promote) | |
423 | dbase.c:156: Undocumented use of global db | |
424 | dbase.c:156: Array fetch using non-integer, enum { mMGRS, fMGRS, mNON, fNON }: | |
425 | db[mNON] | |
426 | dbase.c:156: Undetected modification possible from call to unconstrained | |
427 | function _db_ercKeyGet: _db_ercKeyGet | |
428 | dbase.c:160: Undocumented use of global db | |
429 | dbase.c:160: Array fetch using non-integer, enum { mMGRS, fMGRS, mNON, fNON }: | |
430 | db[fNON] | |
431 | dbase.c:160: Undetected modification possible from call to unconstrained | |
432 | function _db_ercKeyGet: _db_ercKeyGet | |
433 | dbase.c:162: Body of if statement is not a block: return FALSE | |
434 | dbase.c:172: Undocumented use of global db | |
435 | dbase.c:172: Array fetch using non-integer, enum { mMGRS, fMGRS, mNON, fNON }: | |
436 | db[mNON] | |
437 | dbase.c:172: Undocumented modification of db[] possible from call to | |
438 | erc_delete: erc_delete(db[mNON], er) | |
439 | dbase.c:172: Return value (type bool) ignored: erc_delete(db[mN... | |
440 | dbase.c:173: Undocumented use of global db | |
441 | dbase.c:173: Array fetch using non-integer, enum { mMGRS, fMGRS, mNON, fNON }: | |
442 | db[mMGRS] | |
443 | dbase.c:173: Undocumented modification of db[] possible from call to | |
444 | erc_insert: erc_insert(db[mMGRS], er) | |
445 | dbase.c:177: Undocumented use of global db | |
446 | dbase.c:177: Array fetch using non-integer, enum { mMGRS, fMGRS, mNON, fNON }: | |
447 | db[fNON] | |
448 | dbase.c:177: Undocumented modification of db[] possible from call to | |
449 | erc_delete: erc_delete(db[fNON], er) | |
450 | dbase.c:177: Return value (type bool) ignored: erc_delete(db[fN... | |
451 | dbase.c:178: Undocumented use of global db | |
452 | dbase.c:178: Array fetch using non-integer, enum { mMGRS, fMGRS, mNON, fNON }: | |
453 | db[fMGRS] | |
454 | dbase.c:178: Undocumented modification of db[] possible from call to | |
455 | erc_insert: erc_insert(db[fMGRS], er) | |
456 | dbase.c: (in function setSalary) | |
457 | dbase.c:194: Undetected modification possible from call to unconstrained | |
458 | function _db_keyGet: _db_keyGet | |
459 | dbase.c: (in function query) | |
460 | dbase.c:226: Assignment of enum { mMGRS, fMGRS, mNON, fNON } to int: i = mMGRS | |
461 | dbase.c:226: Operands of <= have incompatible types (int, enum { mMGRS, fMGRS, | |
462 | mNON, fNON }): i <= fNON | |
463 | dbase.c:227: Undocumented use of global db | |
464 | dbase.c:227: Undetected modification possible from call to unconstrained | |
465 | function _db_addEmpls: _db_addEmpls | |
466 | dbase.c:227: Body of for statement is not a block: | |
467 | numAdded += _db_addEmpls(db[i], l, h, s) | |
468 | dbase.c:226: Incompatible types for <= (int, enum { mMGRS, fMGRS, mNON, fNON }) | |
469 | (in post loop test): i <= fNON | |
470 | dbase.c:230: Undocumented use of global db | |
471 | dbase.c:230: Array fetch using non-integer, enum { mMGRS, fMGRS, mNON, fNON }: | |
472 | db[mMGRS] | |
473 | dbase.c:230: Undetected modification possible from call to unconstrained | |
474 | function _db_addEmpls: _db_addEmpls | |
475 | dbase.c:231: Undocumented use of global db | |
476 | dbase.c:231: Array fetch using non-integer, enum { mMGRS, fMGRS, mNON, fNON }: | |
477 | db[fMGRS] | |
478 | dbase.c:231: Undetected modification possible from call to unconstrained | |
479 | function _db_addEmpls: _db_addEmpls | |
480 | dbase.c:234: Undocumented use of global db | |
481 | dbase.c:234: Array fetch using non-integer, enum { mMGRS, fMGRS, mNON, fNON }: | |
482 | db[mNON] | |
483 | dbase.c:234: Undetected modification possible from call to unconstrained | |
484 | function _db_addEmpls: _db_addEmpls | |
485 | dbase.c:235: Undocumented use of global db | |
486 | dbase.c:235: Array fetch using non-integer, enum { mMGRS, fMGRS, mNON, fNON }: | |
487 | db[fNON] | |
488 | dbase.c:235: Undetected modification possible from call to unconstrained | |
489 | function _db_addEmpls: _db_addEmpls | |
490 | dbase.c:242: Undocumented use of global db | |
491 | dbase.c:242: Array fetch using non-integer, enum { mMGRS, fMGRS, mNON, fNON }: | |
492 | db[mMGRS] | |
493 | dbase.c:242: Undetected modification possible from call to unconstrained | |
494 | function _db_addEmpls: _db_addEmpls | |
495 | dbase.c:243: Undocumented use of global db | |
496 | dbase.c:243: Array fetch using non-integer, enum { mMGRS, fMGRS, mNON, fNON }: | |
497 | db[mNON] | |
498 | dbase.c:243: Undetected modification possible from call to unconstrained | |
499 | function _db_addEmpls: _db_addEmpls | |
500 | dbase.c:246: Undocumented use of global db | |
501 | dbase.c:246: Array fetch using non-integer, enum { mMGRS, fMGRS, mNON, fNON }: | |
502 | db[mMGRS] | |
503 | dbase.c:246: Undetected modification possible from call to unconstrained | |
504 | function _db_addEmpls: _db_addEmpls | |
505 | dbase.c:248: Undocumented use of global db | |
506 | dbase.c:248: Array fetch using non-integer, enum { mMGRS, fMGRS, mNON, fNON }: | |
507 | db[mNON] | |
508 | dbase.c:248: Undetected modification possible from call to unconstrained | |
509 | function _db_addEmpls: _db_addEmpls | |
510 | dbase.c:254: Undocumented use of global db | |
511 | dbase.c:254: Array fetch using non-integer, enum { mMGRS, fMGRS, mNON, fNON }: | |
512 | db[fMGRS] | |
513 | dbase.c:254: Undetected modification possible from call to unconstrained | |
514 | function _db_addEmpls: _db_addEmpls | |
515 | dbase.c:255: Undocumented use of global db | |
516 | dbase.c:255: Array fetch using non-integer, enum { mMGRS, fMGRS, mNON, fNON }: | |
517 | db[fNON] | |
518 | dbase.c:255: Undetected modification possible from call to unconstrained | |
519 | function _db_addEmpls: _db_addEmpls | |
520 | dbase.c:258: Undocumented use of global db | |
521 | dbase.c:258: Array fetch using non-integer, enum { mMGRS, fMGRS, mNON, fNON }: | |
522 | db[fMGRS] | |
523 | dbase.c:258: Undetected modification possible from call to unconstrained | |
524 | function _db_addEmpls: _db_addEmpls | |
525 | dbase.c:260: Undocumented use of global db | |
526 | dbase.c:260: Array fetch using non-integer, enum { mMGRS, fMGRS, mNON, fNON }: | |
527 | db[fNON] | |
528 | dbase.c:260: Undetected modification possible from call to unconstrained | |
529 | function _db_addEmpls: _db_addEmpls | |
530 | dbase.c:210: Variable er declared but not used | |
531 | dbase.c:211: Variable e declared but not used | |
532 | dbase.c:263: Suspect object listed in modifies of query not modified: s | |
533 | dbase.lcl:49: Specification of query | |
534 | dbase.c: (in function db_print) | |
535 | dbase.c:272: Assignment of enum { mMGRS, fMGRS, mNON, fNON } to int: i = mMGRS | |
536 | dbase.c:272: Operands of <= have incompatible types (int, enum { mMGRS, fMGRS, | |
537 | mNON, fNON }): i <= fNON | |
538 | dbase.c:274: Undocumented use of global db | |
539 | dbase.c:272: Incompatible types for <= (int, enum { mMGRS, fMGRS, mNON, fNON }) | |
540 | (in post loop test): i <= fNON | |
885824d3 | 541 | drive.c: (in function main) |
542 | drive.c:22: Statement has no effect: employee_initMod() | |
543 | drive.c:23: Statement has no effect: empset_initMod() | |
544 | drive.c:48: Return value (type bool) ignored: employee_setName... | |
545 | drive.c:49: Return value (type bool) ignored: empset_insert(em... | |
546 | drive.c:64: Return value (type bool) ignored: employee_setName... | |
547 | drive.c:65: Return value (type bool) ignored: empset_delete(em... | |
548 | drive.c:82: Return value (type bool) ignored: employee_setName... | |
549 | drive.c:83: Return value (type bool) ignored: empset_insert(em... | |
550 | drive.c:107: Return value (type bool) ignored: empset_delete(em... | |
551 | drive.c:116: Body of if clause of if statement is not a block: e.gen = MALE | |
552 | drive.c:116: Body of else clause of if statement is not a block: e.gen = FEMALE | |
553 | drive.c:117: Body of if clause of if statement is not a block: e.j = NONMGR | |
554 | drive.c:117: Body of else clause of if statement is not a block: e.j = MGR | |
555 | drive.c:119: Return value (type bool) ignored: employee_setName... | |
556 | drive.c:123: Return value (type db_status) ignored: hire(e) | |
557 | drive.c:127: Assignment of db_status to int: j = hire(e) | |
558 | drive.c:131: Variable j used before definition | |
559 | drive.c:134: Return value (type bool) ignored: fire(17) | |
560 | drive.c:158: Return value (type bool) ignored: fire(empset_choo... | |
561 | drive.c:11: Parameter argv not used | |
885824d3 | 562 | dbase.c:11: Type employeeKinds declared but not used |
563 | eref.lh:8: Function exported but not used outside eref: eref_free | |
564 | eref.h:23: Definition of eref_free | |
565 | empset.lh:8: Function exported but not used outside empset: empset_final | |
566 | empset.h:29: Definition of empset_final | |
567 | empset.lh:9: Function exported but not used outside empset: empset_clear | |
568 | empset.c:24: Definition of empset_clear | |
569 | empset.lh:11: Function exported but not used outside empset: | |
570 | empset_insertUnique | |
571 | empset.c:53: Definition of empset_insertUnique | |
572 | empset.lh:17: Function exported but not used outside empset: empset_member | |
573 | empset.h:30: Definition of empset_member | |
574 | empset.lh:18: Function exported but not used outside empset: empset_subset | |
575 | empset.c:144: Definition of empset_subset | |
576 | ereftab.lh:10: Function exported but not used outside ereftab: ereftab_delete | |
577 | ereftab.c:26: Definition of ereftab_delete | |
578 | dbase.c:13: Variable exported but not used outside dbase: db | |
579 | dbase.lh:27: Function exported but not used outside dbase: promote | |
580 | dbase.c:182: Definition of promote | |
581 | dbase.lh:28: Function exported but not used outside dbase: setSalary | |
582 | dbase.c:206: Definition of setSalary | |
583 | empset.h:10: Variable exported but not used outside empset: known | |
584 | dbase.c:15: Variable exported but not used outside dbase: initDone | |
585 | dbase.c:40: Function exported but not used outside dbase: _db_ercKeyGet | |
586 | dbase.c:54: Definition of _db_ercKeyGet | |
587 | dbase.c:56: Function exported but not used outside dbase: _db_keyGet | |
588 | dbase.c:71: Definition of _db_keyGet | |
589 | dbase.c:73: Function exported but not used outside dbase: _db_addEmpls | |
590 | dbase.c:92: Definition of _db_addEmpls | |
591 | dbase.c:13: Variable db exported but not declared in header file | |
592 | empset.c:5: Function _empset_get exported but not declared in header file | |
593 | empset.c:19: Definition of _empset_get | |
594 | dbase.c:15: Variable initDone exported but not declared in header file | |
595 | dbase.c:40: Function _db_ercKeyGet exported but not declared in header file | |
596 | dbase.c:54: Definition of _db_ercKeyGet | |
597 | dbase.c:56: Function _db_keyGet exported but not declared in header file | |
598 | dbase.c:71: Definition of _db_keyGet | |
599 | dbase.c:73: Function _db_addEmpls exported but not declared in header file | |
600 | dbase.c:92: Definition of _db_addEmpls | |
885824d3 | 601 | |
602 | Error Type Reported Suppressed | |
603 | =================== ======== ========= | |
604 | abstract 2 0 | |
605 | mayaliasunique 1 0 | |
606 | exitarg 8 0 | |
607 | unreachable 1 0 | |
608 | forempty 1 0 | |
609 | forblock 11 0 | |
80ee600a | 610 | ifblock 22 0 |
3120b462 | 611 | redecl 0 7 |
612 | incondefs 0 1 | |
885824d3 | 613 | usedef 1 0 |
614 | noeffect 11 0 | |
615 | exporttype 5 0 | |
616 | exportvar 2 0 | |
617 | exportconst 2 0 | |
618 | globs 64 1 | |
619 | internalglobs 2 0 | |
620 | warnmissingglobs 1 6 | |
621 | retvalother 1 0 | |
622 | retvalbool 16 0 | |
623 | macroparens 4 0 | |
624 | usereleased 1 0 | |
3120b462 | 625 | compdef 3 0 |
80ee600a | 626 | compdestroy 1 0 |
2e127cb8 | 627 | mustfreeonly 3 0 |
80ee600a | 628 | branchstate 2 1 |
885824d3 | 629 | onlytrans 1 0 |
630 | freshtrans 3 0 | |
631 | temptrans 3 2 | |
632 | readonlytrans 6 0 | |
633 | mods 38 0 | |
634 | mustmod 2 0 | |
635 | modfilesys 0 25 | |
636 | modnomods 4 0 | |
637 | moduncon 20 0 | |
638 | modunconnomods 1 0 | |
3120b462 | 639 | namechecks 11 6 |
640 | protoparammatch 1 0 | |
885824d3 | 641 | nullret 1 0 |
642 | nullstate 1 0 | |
643 | sizeoftype 7 0 | |
3120b462 | 644 | formalarray 0 24 |
885824d3 | 645 | type 1 0 |
646 | enumindex 24 0 | |
80ee600a | 647 | enumint 15 0 |
885824d3 | 648 | matchanyintegral 2 0 |
649 | exportlocal 15 0 | |
650 | exportheader 4 0 | |
651 | exportheadervar 2 0 | |
652 | paramuse 1 0 | |
653 | typeuse 1 0 | |
654 | varuse 4 0 | |
655 | ======== ========= | |
3120b462 | 656 | Total 333 73 |
885824d3 | 657 | |
11db3170 | 658 | Finished checking --- 333 code warnings, as expected |