]> andersk Git - splint.git/blame - test/libs.expect
noexpand always false.
[splint.git] / test / libs.expect
CommitLineData
885824d3 1
2libs.c: (in function compare2)
3libs.c:14:10: Observer storage returned without qualification: "ok"
4 libs.c:14:10: Storage becomes observer
5libs.c: (in function leave)
6libs.c:20:9: Function exit expects arg 1 to be int gets char *: "hullo"
7libs.c:21:3: Unreachable code: exit(i)
8libs.c: (in function print)
80ee600a 9libs.c:29:3: Format string parameter to fprintf is not a compile-time constant:
10 s
11libs.c:30:3: Format string parameter to printf is not a compile-time constant:
12 s
13libs.c:31:3: Format string parameter to fprintf is not a compile-time constant:
14 s
885824d3 15libs.c:33:3: Assignment of int to char: c = fgetc(f)
16libs.c:34:3: Assignment of int to char: c = getc(f)
17libs.c: (in function main)
18libs.c:46:44: Function bsearch expects arg 4 to be size_t gets [function (int,
19 int) returns int]: compare
20libs.c:46:10: Function bsearch called with 4 args, expects 5
21libs.c:48:50: Function bsearch expects arg 5 to be [function (void *, void *)
22 returns int] * gets [function () returns char] *:
23 ([function () returns char] *)compare2
24libs.c:48:3: Return value (type void *) ignored: bsearch(NULL, NU...
25libs.c:52:10: Function qsort expects arg 1 to be void * gets unsigned int: x
26libs.c:52:19: Function qsort expects arg 4 to be [function (void *, void *)
27 returns int] * gets [function () returns char] *:
28 ([function () returns char] *)compare2
29libs.c:54:11: Unrecognized identifier: SIGHUP
30libs.c:54:19: Function signal expects arg 2 to be [function (int) returns void]
31 * gets [function (int, int) returns int]: compare
32libs.c:54:3: Return value (type [function (int) returns void]) ignored:
33 signal(SIGHUP, c...
34libs.c:55:3: Return value (type [function (int) returns void]) ignored:
35 signal(SIGHUP, l...
36
11db3170 37Finished checking --- 18 code warnings, as expected
885824d3 38
39libs.c: (in function compare2)
40libs.c:14:10: Observer storage returned without qualification: "ok"
41 libs.c:14:10: Storage becomes observer
42libs.c: (in function leave)
43libs.c:20:9: Function exit expects arg 1 to be int gets char *: "hullo"
44libs.c:21:3: Unreachable code: exit(i)
45libs.c: (in function print)
80ee600a 46libs.c:29:3: Format string parameter to fprintf is not a compile-time constant:
47 s
48libs.c:30:3: Format string parameter to printf is not a compile-time constant:
49 s
50libs.c:31:3: Format string parameter to fprintf is not a compile-time constant:
51 s
885824d3 52libs.c:33:3: Assignment of int to char: c = fgetc(f)
53libs.c:34:3: Assignment of int to char: c = getc(f)
54libs.c: (in function main)
55libs.c:46:44: Function bsearch expects arg 4 to be size_t gets [function (int,
56 int) returns int]: compare
57libs.c:46:10: Function bsearch called with 4 args, expects 5
58libs.c:48:50: Function bsearch expects arg 5 to be [function (void *, void *)
59 returns int] * gets [function () returns char] *:
60 ([function () returns char] *)compare2
61libs.c:48:3: Return value (type void *) ignored: bsearch(NULL, NU...
62libs.c:51:16: Function qsort expects arg 2 to be size_t gets unsigned int: x
63libs.c:51:19: Function qsort expects arg 3 to be size_t gets unsigned int: x
64libs.c:52:10: Function qsort expects arg 1 to be void * gets unsigned int: x
65libs.c:52:13: Function qsort expects arg 2 to be size_t gets unsigned int: x
66libs.c:52:16: Function qsort expects arg 3 to be size_t gets unsigned int: x
67libs.c:52:19: Function qsort expects arg 4 to be [function (void *, void *)
68 returns int] * gets [function () returns char] *:
69 ([function () returns char] *)compare2
70libs.c:54:11: Unrecognized identifier: SIGHUP
71libs.c:54:19: Function signal expects arg 2 to be [function (int) returns void]
72 * gets [function (int, int) returns int]: compare
73libs.c:54:3: Return value (type [function (int) returns void]) ignored:
74 signal(SIGHUP, c...
75libs.c:55:3: Return value (type [function (int) returns void]) ignored:
76 signal(SIGHUP, l...
77
11db3170 78Finished checking --- 22 code warnings, as expected
885824d3 79
80libs.c: (in function compare2)
81libs.c:14:10: Observer storage returned without qualification: "ok"
82 libs.c:14:10: Storage becomes observer
83libs.c: (in function leave)
84libs.c:20:9: Function exit expects arg 1 to be int gets char *: "hullo"
85libs.c:21:3: Unreachable code: exit(i)
86libs.c: (in function print)
80ee600a 87libs.c:29:3: Format string parameter to fprintf is not a compile-time constant:
88 s
885824d3 89libs.c:29:3: Undocumented modification of *f possible from call to fprintf:
90 fprintf(f, s)
80ee600a 91libs.c:30:3: Format string parameter to printf is not a compile-time constant:
92 s
93libs.c:31:3: Format string parameter to fprintf is not a compile-time constant:
94 s
885824d3 95libs.c:33:7: Undocumented modification of *f possible from call to fgetc:
96 fgetc(f)
97libs.c:33:3: Assignment of int to char: c = fgetc(f)
98libs.c:34:7: Undocumented modification of *f possible from call to getc:
99 getc(f)
100libs.c:34:3: Assignment of int to char: c = getc(f)
101libs.c: (in function main)
102libs.c:46:44: Function bsearch expects arg 4 to be size_t gets [function (int,
103 int) returns int]: compare
104libs.c:46:10: Function bsearch called with 4 args, expects 5
105libs.c:48:50: Function bsearch expects arg 5 to be [function (void *, void *)
106 returns int] * gets [function () returns char] *:
107 ([function () returns char] *)compare2
108libs.c:48:3: Return value (type void *) ignored: bsearch(NULL, NU...
109libs.c:51:16: Function qsort expects arg 2 to be size_t gets unsigned int: x
110libs.c:51:19: Function qsort expects arg 3 to be size_t gets unsigned int: x
111libs.c:52:10: Function qsort expects arg 1 to be void * gets unsigned int: x
112libs.c:52:13: Function qsort expects arg 2 to be size_t gets unsigned int: x
113libs.c:52:16: Function qsort expects arg 3 to be size_t gets unsigned int: x
114libs.c:52:19: Function qsort expects arg 4 to be [function (void *, void *)
115 returns int] * gets [function () returns char] *:
116 ([function () returns char] *)compare2
117libs.c:54:11: Unrecognized identifier: SIGHUP
118libs.c:54:19: Function signal expects arg 2 to be [function (int) returns void]
119 * gets [function (int, int) returns int]: compare
120libs.c:54:3: Return value (type [function (int) returns void]) ignored:
121 signal(SIGHUP, c...
122libs.c:55:3: Return value (type [function (int) returns void]) ignored:
123 signal(SIGHUP, l...
124
11db3170 125Finished checking --- 25 code warnings, as expected
885824d3 126
127libs.c: (in function compare2)
128libs.c:14:10: Observer storage returned without qualification: "ok"
129 libs.c:14:10: Storage becomes observer
130libs.c: (in function leave)
131libs.c:20:9: Function exit expects arg 1 to be int gets char *: "hullo"
132libs.c:21:3: Unreachable code: exit(i)
133libs.c: (in function print)
80ee600a 134libs.c:29:3: Format string parameter to fprintf is not a compile-time constant:
135 s
885824d3 136libs.c:29:3: Undocumented modification of *f possible from call to fprintf:
137 fprintf(f, s)
138libs.c:29:3: Return value (type int) ignored: fprintf(f, s)
80ee600a 139libs.c:30:3: Format string parameter to printf is not a compile-time constant:
140 s
885824d3 141libs.c:30:3: Called procedure printf may access global stdout
142libs.c:30:3: Undocumented modification of *stdout possible from call to printf:
143 printf(s)
144libs.c:30:3: Return value (type int) ignored: printf(s)
145libs.c:31:12: Undocumented use of global stderr
80ee600a 146libs.c:31:3: Format string parameter to fprintf is not a compile-time constant:
147 s
885824d3 148libs.c:31:3: Undocumented modification of *stderr possible from call to
149 fprintf: fprintf(stderr, s)
150libs.c:31:3: Return value (type int) ignored: fprintf(stderr, s)
151libs.c:33:7: Called procedure fgetc may access global errno
152libs.c:33:7: Undocumented modification of *f possible from call to fgetc:
153 fgetc(f)
154libs.c:33:7: Undocumented modification of errno possible from call to fgetc:
155 fgetc(f)
156libs.c:33:3: Assignment of int to char: c = fgetc(f)
f9264521 157libs.c:34:7: Called procedure getc may access global errno
885824d3 158libs.c:34:7: Undocumented modification of *f possible from call to getc:
159 getc(f)
f9264521 160libs.c:34:7: Undocumented modification of errno possible from call to getc:
161 getc(f)
885824d3 162libs.c:34:3: Assignment of int to char: c = getc(f)
163libs.c: (in function main)
164libs.c:46:44: Function bsearch expects arg 4 to be size_t gets [function (int,
165 int) returns int]: compare
166libs.c:46:10: Function bsearch called with 4 args, expects 5
167libs.c:48:50: Function bsearch expects arg 5 to be [function (void *, void *)
168 returns int] * gets [function () returns char] *:
169 ([function () returns char] *)compare2
170libs.c:48:3: Return value (type void *) ignored: bsearch(NULL, NU...
171libs.c:51:16: Function qsort expects arg 2 to be size_t gets unsigned int: x
172libs.c:51:19: Function qsort expects arg 3 to be size_t gets unsigned int: x
173libs.c:51:3: Called procedure qsort may access global errno
174libs.c:51:3: Undocumented modification of errno possible from call to qsort:
175 qsort(NULL, x, x, ([function () returns int] *)compare)
176libs.c:52:10: Function qsort expects arg 1 to be void * gets unsigned int: x
177libs.c:52:13: Function qsort expects arg 2 to be size_t gets unsigned int: x
178libs.c:52:16: Function qsort expects arg 3 to be size_t gets unsigned int: x
179libs.c:52:19: Function qsort expects arg 4 to be [function (void *, void *)
180 returns int] * gets [function () returns char] *:
181 ([function () returns char] *)compare2
182libs.c:52:3: Called procedure qsort may access global errno
183libs.c:52:3: Undocumented modification of errno possible from call to qsort:
184 qsort(x, x, x, ([function () returns char] *)compare2)
185libs.c:54:11: Unrecognized identifier: SIGHUP
186libs.c:54:19: Function signal expects arg 2 to be [function (int) returns void]
187 * gets [function (int, int) returns int]: compare
188libs.c:54:3: Called procedure signal may access global errno
189libs.c:54:3: Undocumented modification of errno possible from call to signal:
190 signal(SIGHUP, compare)
191libs.c:54:3: Return value (type [function (int) returns void]) ignored:
192 signal(SIGHUP, c...
193libs.c:55:3: Called procedure signal may access global errno
194libs.c:55:3: Undocumented modification of errno possible from call to signal:
195 signal(SIGHUP, leave)
196libs.c:55:3: Return value (type [function (int) returns void]) ignored:
197 signal(SIGHUP, l...
198
f9264521 199Finished checking --- 44 code warnings, as expected
This page took 0.095859 seconds and 5 git commands to generate.