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