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