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