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