File: lint.7

package info (click to toggle)
freebsd-manpages 6.0-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 60,772 kB
  • sloc: makefile: 58; sh: 9
file content (366 lines) | stat: -rw-r--r-- 14,484 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
.\"	$NetBSD$
.\"
.\" Copyright (c) 2000 The NetBSD Foundation, Inc.
.\" All rights reserved.
.\"
.\" This code is derived from software contributed to The NetBSD Foundation
.\" by Christos Zoulas.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\"    must display the following acknowledgement:
.\"        This product includes software developed by the NetBSD
.\"        Foundation, Inc. and its contributors.
.\" 4. Neither the name of The NetBSD Foundation nor the names of its
.\"    contributors may be used to endorse or promote products derived
.\"    from this software without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.\" $FreeBSD: src/usr.bin/xlint/lint1/makeman,v 1.3 2002/12/11 17:13:09 ru Exp $
.\"
.Dd July 5, 2000
.Dt LINT 7
.Os
.Sh NAME
.Nm lint
.Nd Lint error message list
.Sh DESCRIPTION
The following is a list of message IDs and messages produced by
.Xr lint 1 .
It is intended to be used with
.Fl X
flag of
.Xr lint 1 .
.Bl -column -offset indent "Id#" "Message"
0	syntax error: empty declaration
1	old style declaration; add int
2	empty declaration
3	%s declared in argument declaration list
4	illegal type combination
5	modifying typedef with '%s'; only qualifiers allowed
6	use 'double' instead of 'long float'
7	only one storage class allowed
8	illegal storage class
9	only register valid as formal parameter storage class
10	duplicate '%s'
11	bit-field initializer out of range
12	compiler takes size of function
13	incomplete enum type: %s
14	compiler takes alignment of function
15	function returns illegal type
16	array of function is illegal
17	null dimension
18	illegal use of 'void'
19	void type for %s
20	zero or negative array dimension
21	redeclaration of formal parameter %s
22	incomplete or misplaced function definition
23	undefined label %s
24	cannot initialize function: %s
25	cannot initialize typedef: %s
26	cannot initialize extern declaration: %s
27	redeclaration of %s
28	redefinition of %s
29	previously declared extern, becomes static: %s
30	redeclaration of %s; ANSI C requires static
31	incomplete structure or union %s: %s
32	argument type defaults to 'int': %s
33	duplicate member name: %s
34	nonportable bit-field type
35	illegal bit-field type
36	illegal bit-field size
37	zero size bit-field
38	function illegal in structure or union
39	illegal zero sized structure member: %s
40	unknown size: %s
41	illegal use of bit-field
42	forward reference to enum type
43	redefinition hides earlier one: %s
44	declaration introduces new type in ANSI C: %s %s
45	base type is really '%s %s'
46	(%s) tag redeclared
47	zero sized %s
48	overflow in enumeration values: %s
49	struct or union member must be named
50	a function is declared as an argument: %s
51	parameter mismatch: %d declared, %d defined
52	cannot initialize parameter: %s
53	declared argument %s is missing
54	trailing ',' prohibited in enum declaration
55	integral constant expression expected
56	integral constant too large
57	enumeration constant hides parameter: %s
58	type does not match prototype: %s
59	formal parameter lacks name: param #%d
60	void must be sole parameter
61	void parameter cannot have name: %s
62	function prototype parameters must have types
63	prototype does not match old-style definition
64	()-less function definition
65	%s has no named members
66	syntax requires ';' after last struct/union member
67	cannot return incomplete type
68	typedef already qualified with '%s'
69	inappropriate qualifiers with 'void'
70	%soperand of '%s' is unsigned in ANSI C
71	too many characters in character constant
72	typedef declares no type name
73	empty character constant
74	no hex digits follow \ex
75	overflow in hex escape
76	character escape does not fit in character
77	bad octal digit %c
78	nonportable character escape
79	dubious escape \e%c
80	dubious escape \e%o
81	\ea undefined in traditional C
82	\ex undefined in traditional C
83	storage class after type is obsolescent
84	ANSI C requires formal parameter before '...'
85	dubious tag declaration: %s %s
86	automatic hides external declaration: %s
87	static hides external declaration: %s
88	typedef hides external declaration: %s
89	typedef redeclared: %s
90	inconsistent redeclaration of extern: %s
91	declaration hides parameter: %s
92	inconsistent redeclaration of static: %s
93	dubious static function at block level: %s
94	function has illegal storage class: %s
95	declaration hides earlier one: %s
96	cannot dereference non-pointer type
97	suffix U is illegal in traditional C
98	suffixes F and L are illegal in traditional C
99	%s undefined
100	unary + is illegal in traditional C
101	undefined struct/union member: %s
102	illegal member use: %s
103	left operand of '.' must be struct/union object
104	left operand of '->' must be pointer to struct/union
105	non-unique member requires struct/union %s
106	left operand of '->' must be pointer
107	operands of '%s' have incompatible types
108	operand of '%s' has incompatible type
109	void type illegal in expression
110	pointer to function is not allowed here
111	unacceptable operand of '%s'
112	cannot take address of bit-field
113	cannot take address of register %s
114	%soperand of '%s' must be lvalue
115	%soperand of '%s' must be modifiable lvalue
116	illegal pointer subtraction
117	bitwise operation on signed value possibly nonportable
118	semantics of '%s' change in ANSI C; use explicit cast
119	conversion of '%s' to '%s' is out of range
120	bitwise operation on signed value nonportable
121	negative shift
122	shift greater than size of object
123	illegal combination of pointer and integer, op %s
124	illegal pointer combination, op %s
125	ANSI C forbids ordered comparisons of pointers to functions
126	incompatible types in conditional
127	'&' before array or function: ignored
128	operands have incompatible pointer types, op %s
129	expression has null effect
130	enum type mismatch, op %s
131	conversion to '%s' may sign-extend incorrectly
132	conversion from '%s' may lose accuracy
133	conversion of pointer to '%s' loses bits
134	conversion of pointer to '%s' may lose bits
135	possible pointer alignment problem
136	cannot do pointer arithmetic on operand of unknown size
137	use of incomplete enum type, op %s
138	unknown operand size, op %s
139	division by 0
140	modulus by 0
141	integer overflow detected, op %s
142	floating point overflow detected, op %s
143	cannot take size of incomplete type
144	cannot take size of function
145	cannot take size of bit-field
146	cannot take size of void
147	invalid cast expression
148	improper cast of void expression
149	illegal function
150	argument mismatch: %d arg%s passed, %d expected
151	void expressions may not be arguments, arg #%d
152	argument cannot have unknown size, arg #%d
153	argument has incompatible pointer type, arg #%d
154	illegal combination of pointer and integer, arg #%d
155	argument is incompatible with prototype, arg #%d
156	enum type mismatch, arg #%d
157	ANSI C treats constant as unsigned
158	%s may be used before set
159	assignment in conditional context
160	operator '==' found where '=' was expected
161	constant in conditional context
162	comparison of %s with %s, op %s
163	a cast does not yield an lvalue
164	assignment of negative constant to unsigned type
165	constant truncated by assignment
166	precision lost in bit-field assignment
167	array subscript cannot be negative: %ld
168	array subscript cannot be > %d: %ld
169	precedence confusion possible: parenthesize!
170	first operand must have scalar type, op ? :
171	assignment type mismatch
172	too many struct/union initializers
173	too many array initializers
174	too many initializers
175	initialisation of an incomplete type
176	invalid initializer
177	non-constant initializer
178	initializer does not fit
179	cannot initialize struct/union with no named member
180	bit-field initializer does not fit
181	{}-enclosed initializer required
182	incompatible pointer types
183	illegal combination of pointer and integer
184	illegal pointer combination
185	initialisation type mismatch
186	bit-field initialisation is illegal in traditional C
187	non-null byte ignored in string initializer
188	no automatic aggregate initialization in traditional C
189	assignment of struct/union illegal in traditional C
190	empty array declaration: %s
191	%s set but not used in function %s
192	%s unused in function %s
193	statement not reached
194	label %s redefined
195	case not in switch
196	case label affected by conversion
197	non-constant case expression
198	non-integral case expression
199	duplicate case in switch: %ld
200	duplicate case in switch: %lu
201	default outside switch
202	duplicate default in switch
203	case label must be of type `int' in traditional C
204	controlling expressions must have scalar type
205	switch expression must have integral type
206	enumeration value(s) not handled in switch
207	loop not entered at top
208	break outside loop or switch
209	continue outside loop
210	enum type mismatch in initialisation
211	return value type mismatch
212	cannot return incomplete type
213	void function %s cannot return value
214	function %s expects to return value
215	function implicitly declared to return int
216	function %s has return (e); and return;
217	function %s falls off bottom without returning value
218	ANSI C treats constant as unsigned, op %s
219	concatenated strings are illegal in traditional C
220	fallthrough on case statement
221	initialisation of unsigned with negative constant
222	conversion of negative constant to unsigned type
223	end-of-loop code not reached
224	cannot recover from previous errors
225	static function called but not defined: %s()
226	static variable %s unused
227	const object %s should have initializer
228	function cannot return const or volatile object
229	questionable conversion of function pointer
230	nonportable character comparison, op %s
231	argument %s unused in function %s
232	label %s unused in function %s
233	struct %s never defined
234	union %s never defined
235	enum %s never defined
236	static function %s unused
237	redeclaration of formal parameter %s
238	initialisation of union is illegal in traditional C
239	constant argument to NOT
240	assignment of different structures
241	dubious operation on enum, op %s
242	combination of '%s' and '%s', op %s
243	dubious comparison of enums, op %s
244	illegal structure pointer combination
245	illegal structure pointer combination, op %s
246	dubious conversion of enum to '%s'
247	pointer casts may be troublesome
248	floating-point constant out of range
249	syntax error
250	unknown character \e%o
251	malformed integer constant
252	integer constant out of range
253	unterminated character constant
254	newline in string or char constant
255	undefined or invalid # directive
256	unterminated comment
257	extra characters in lint comment
258	unterminated string constant
259	conversion to '%s' due to prototype, arg #%d
260	previous declaration of %s
261	previous definition of %s
262	\e" inside character constants undefined in traditional C
263	\e? undefined in traditional C
264	\ev undefined in traditional C
265	%s C does not support 'long long'
266	'long double' is illegal in traditional C
267	shift equal to size of object
268	variable declared inline: %s
269	argument declared inline: %s
270	function prototypes are illegal in traditional C
271	switch expression must be of type `int' in traditional C
272	empty translation unit
273	bit-field type '%s' invalid in ANSI C
274	ANSI C forbids comparison of %s with %s
275	cast discards 'const' from pointer target type
276	
277	initialisation of '%s' with '%s'
278	combination of '%s' and '%s', arg #%d
279	combination of '%s' and '%s' in return
280	must be outside function: /* %s */
281	duplicate use of /* %s */
282	must precede function definition: /* %s */
283	argument number mismatch with directive: /* %s */
284	fallthrough on default statement
285	prototype declaration
286	function definition is not a prototype
287	function declaration is not a prototype
288	dubious use of /* VARARGS */ with /* %s */
289	can't be used together: /* PRINTFLIKE */ /* SCANFLIKE */
290	static function %s declared but not defined
291	invalid multibyte character
292	cannot concatenate wide and regular string literals
293	argument %d must be 'char *' for PRINTFLIKE/SCANFLIKE
294	multi-character character constant
295	conversion of '%s' to '%s' is out of range, arg #%d
296	conversion of negative constant to unsigned type, arg #%d
297	conversion to '%s' may sign-extend incorrectly, arg #%d
298	conversion from '%s' may lose accuracy, arg #%d
299	prototype does not match old style definition, arg #%d
300	old style definition
301	array of incomplete type
302	%s returns pointer to automatic object
303	ANSI C forbids conversion of %s to %s
304	ANSI C forbids conversion of %s to %s, arg #%d
305	ANSI C forbids conversion of %s to %s, op %s
306	constant truncated by conversion, op %s
307	static variable %s set but not used
308	
309	extra bits set to 0 in conversion of '%s' to '%s', op %s
310	symbol renaming can't be used on function arguments
311	symbol renaming can't be used on automatic variables
312	%s C does not support // comments
.El