]> andersk Git - splint.git/blame - test/db3.expect
*** empty log message ***
[splint.git] / test / db3.expect
CommitLineData
885824d3 1
2
3Error Type Reported Suppressed
4=================== ======== =========
5usedef 0 1
3120b462 6compdef 0 3
bb7c2085 7incondefs 0 1
3120b462 8formalarray 0 24
bb7c2085 9modfilesys 0 25
10redecl 0 7
11exporttype 0 3
885824d3 12 ======== =========
3120b462 13Total 0 64
885824d3 14
11db3170 15Finished checking --- no warnings
885824d3 16
17eref.c: (in function eref_alloc)
18eref.c:36: Called procedure printf may access global stdout
19eref.c:36: Undocumented modification of *stdout possible from call to printf:
20 printf("Malloc returned null in eref_alloc\n")
21eref.c:36: Return value (type int) ignored: printf("Malloc r...
22eref.c:46: Called procedure printf may access global stdout
23eref.c:46: Undocumented modification of *stdout possible from call to printf:
24 printf("Malloc returned null in eref_alloc\n")
25eref.c:46: Return value (type int) ignored: printf("Malloc r...
26eref.c: (in function eref_initMod)
27eref.c:82: Called procedure printf may access global stdout
28eref.c:82: Undocumented modification of *stdout possible from call to printf:
29 printf("Malloc returned null in eref_initMod\n")
30eref.c:82: Return value (type int) ignored: printf("Malloc r...
31eref.c:90: Called procedure printf may access global stdout
32eref.c:90: Undocumented modification of *stdout possible from call to printf:
33 printf("Malloc returned null in eref_initMod\n")
34eref.c:90: Return value (type int) ignored: printf("Malloc r...
35erc.c: (in function int_toSize)
36erc.c:11: Undocumented use of global stderr
37erc.c:11: Undocumented modification of *stderr possible from call to fprintf:
38 fprintf(stderr, "Error: int_toSize failure: %d", x)
39erc.c:11: Return value (type int) ignored: fprintf(stderr, ...
40erc.c: (in function erc_create)
41erc.c:28: Called procedure printf may access global stdout
42erc.c:28: Undocumented modification of *stdout possible from call to printf:
43 printf("Malloc returned null in erc_create\n")
44erc.c:28: Return value (type int) ignored: printf("Malloc r...
45erc.c: (in function erc_insert)
46erc.c:80: Called procedure printf may access global stdout
47erc.c:80: Undocumented modification of *stdout possible from call to printf:
48 printf("Malloc returned null in erc_insert\n")
49erc.c:80: Return value (type int) ignored: printf("Malloc r...
50erc.c: (in function erc_sprint)
51erc.c:145: Called procedure printf may access global stdout
52erc.c:145: Undocumented modification of *stdout possible from call to printf:
53 printf("Malloc returned null in erc_sprint\n")
54erc.c:145: Return value (type int) ignored: printf("Malloc r...
55dbase.c: (in function db_print)
56dbase.c:307: Return value (type int) ignored: printf("Employee...
57dbase.c:312: Return value (type int) ignored: printf("%s", pri...
58drive.c: (in function main)
59drive.c:31: Called procedure printf may access global stdout
60drive.c:31: Undocumented modification of *stdout possible from call to printf:
61 printf("FormatPos: Wrong number of arguments. Given %d needs 0.\n", argc -
62 1)
63drive.c:31: Return value (type int) ignored: printf("FormatPo...
64drive.c:41: Called procedure printf may access global stdout
65drive.c:41: Undocumented modification of *stdout possible from call to printf:
66 printf("Size should be 0.\n")
67drive.c:41: Return value (type int) ignored: printf("Size sho...
68drive.c:57: Called procedure printf may access global stdout
69drive.c:57: Undocumented modification of *stdout possible from call to printf:
70 printf("Size should be 500.\n")
71drive.c:57: Return value (type int) ignored: printf("Size sho...
72drive.c:73: Called procedure printf may access global stdout
73drive.c:73: Undocumented modification of *stdout possible from call to printf:
74 printf("Size should be 250.\n")
75drive.c:73: Return value (type int) ignored: printf("Size sho...
76drive.c:93: Called procedure printf may access global stdout
77drive.c:93: Undocumented modification of *stdout possible from call to printf:
78 printf("Size should be 350.\n")
79drive.c:93: Return value (type int) ignored: printf("Size sho...
80drive.c:100: Called procedure printf may access global stdout
81drive.c:100: Undocumented modification of *stdout possible from call to printf:
82 printf("Size should be 350.\n")
83drive.c:100: Return value (type int) ignored: printf("Size sho...
84drive.c:103: Called procedure printf may access global stdout
85drive.c:103: Undocumented modification of *stdout possible from call to printf:
86 printf("Print two different employees:\n")
87drive.c:103: Return value (type int) ignored: printf("Print tw...
88drive.c:109: Called procedure printf may access global stdout
89drive.c:109: Undocumented modification of *stdout possible from call to printf:
90 printf("%s\n", &(na[0]))
91drive.c:109: Return value (type int) ignored: printf("%s\n", &...
92drive.c:151: Called procedure printf may access global stdout
93drive.c:151: Undocumented modification of *stdout possible from call to printf:
94 printf("Should print true: %s\n", bool_unparse(status == DBS_DUPLERR))
95drive.c:151: Return value (type int) ignored: printf("Should p...
96drive.c:154: Called procedure printf may access global stdout
97drive.c:154: Undocumented modification of *stdout possible from call to printf:
98 printf("Employees 0 - 19\n")
99drive.c:154: Return value (type int) ignored: printf("Employee...
100drive.c:155: Called procedure db_print may access global stdout
101drive.c:155: Undocumented modification of *stdout possible from call to
102 db_print: db_print()
103drive.c:158: Called procedure printf may access global stdout
104drive.c:158: Undocumented modification of *stdout possible from call to printf:
105 printf("Employees 0 - 16, 18 - 19\n")
106drive.c:158: Return value (type int) ignored: printf("Employee...
107drive.c:159: Called procedure db_print may access global stdout
108drive.c:159: Undocumented modification of *stdout possible from call to
109 db_print: db_print()
110drive.c:164: Called procedure printf may access global stdout
111drive.c:164: Undocumented modification of *stdout possible from call to printf:
112 printf("Should get two females: %d\n%s\n", i, sprintResult)
113drive.c:164: Return value (type int) ignored: printf("Should g...
114drive.c:174: Called procedure printf may access global stdout
115drive.c:174: Undocumented modification of *stdout possible from call to printf:
116 printf("Should get two females and ten males: %d\n%s\n", i, sprintResult)
117drive.c:174: Return value (type int) ignored: printf("Should g...
118drive.c:180: Called procedure printf may access global stdout
119drive.c:180: Undocumented modification of *stdout possible from call to printf:
120 printf("Should get two females: %d\n%s\n", i, sprintResult)
121drive.c:180: Return value (type int) ignored: printf("Should g...
122drive.c:184: Called procedure printf may access global stdout
123drive.c:184: Undocumented modification of *stdout possible from call to printf:
124 printf("Should get 18 employees\n")
125drive.c:184: Return value (type int) ignored: printf("Should g...
126drive.c:185: Called procedure db_print may access global stdout
127drive.c:185: Undocumented modification of *stdout possible from call to
128 db_print: db_print()
129
130Error Type Reported Suppressed
131=================== ======== =========
132usedef 0 1
3120b462 133compdef 0 3
bb7c2085 134incondefs 0 1
135formalarray 0 24
885824d3 136mods 26 0
137modfilesys 0 25
bb7c2085 138globs 26 0
139retvalint 25 0
140redecl 0 7
141exporttype 0 3
885824d3 142 ======== =========
3120b462 143Total 77 64
885824d3 144
11db3170 145Finished checking --- 77 code warnings, as expected
This page took 1.770761 seconds and 5 git commands to generate.