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