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