:man| Alphabetical   Categories   About us 
 
LINT (7) | Miscellanea | Unix Manual Pages | :man

NAME

lint - Lint error message list

CONTENTS

Description

DESCRIPTION

The following is a list of message IDs and messages produced by lint(1). It is intended to be used with -X flag of lint(1). 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 \x 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 \%c 80 dubious escape \%o 81 \a undefined in traditional C 82 \x 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 100unary + is illegal in traditional C 101undefined struct/union member: %s 102illegal member use: %s 103left operand of ’.’ must be struct/union object 104left operand of ’->’ must be pointer to struct/union 105non-unique member requires struct/union %s 106left operand of ’->’ must be pointer 107operands of ’%s’ have incompatible types 108operand of ’%s’ has incompatible type 109void type illegal in expression 110pointer to function is not allowed here 111unacceptable operand of ’%s’ 112cannot take address of bit-field 113cannot take address of register %s 114%soperand of ’%s’ must be lvalue 115%soperand of ’%s’ must be modifiable lvalue 116illegal pointer subtraction 117bitwise operation on signed value possibly nonportable 118semantics of ’%s’ change in ANSI C; use explicit cast 119conversion of ’%s’ to ’%s’ is out of range 120bitwise operation on signed value nonportable 121negative shift 122shift greater than size of object 123illegal combination of pointer and integer, op %s 124illegal pointer combination, op %s 125ANSI C forbids ordered comparisons of pointers to functions 126incompatible types in conditional 127’&’ before array or function: ignored 128operands have incompatible pointer types, op %s 129expression has null effect 130enum type mismatch, op %s 131conversion to ’%s’ may sign-extend incorrectly 132conversion from ’%s’ may lose accuracy 133conversion of pointer to ’%s’ loses bits 134conversion of pointer to ’%s’ may lose bits 135possible pointer alignment problem 136cannot do pointer arithmetic on operand of unknown size 137use of incomplete enum type, op %s 138unknown operand size, op %s 139division by 0 140modulus by 0 141integer overflow detected, op %s 142floating point overflow detected, op %s 143cannot take size of incomplete type 144cannot take size of function 145cannot take size of bit-field 146cannot take size of void 147invalid cast expression 148improper cast of void expression 149illegal function 150argument mismatch: %d arg%s passed, %d expected 151void expressions may not be arguments, arg #%d 152argument cannot have unknown size, arg #%d 153argument has incompatible pointer type, arg #%d 154illegal combination of pointer and integer, arg #%d 155argument is incompatible with prototype, arg #%d 156enum type mismatch, arg #%d 157ANSI C treats constant as unsigned 158%s may be used before set 159assignment in conditional context 160operator ’==’ found where ’=’ was expected 161constant in conditional context 162comparison of %s with %s, op %s 163a cast does not yield an lvalue 164assignment of negative constant to unsigned type 165constant truncated by assignment 166precision lost in bit-field assignment 167array subscript cannot be negative: %ld 168array subscript cannot be > %d: %ld 169precedence confusion possible: parenthesize! 170first operand must have scalar type, op ? : 171assignment type mismatch 172too many struct/union initializers 173too many array initializers 174too many initializers 175initialisation of an incomplete type 176invalid initializer 177non-constant initializer 178initializer does not fit 179cannot initialize struct/union with no named member 180bit-field initializer does not fit 181{}-enclosed initializer required 182incompatible pointer types 183illegal combination of pointer and integer 184illegal pointer combination 185initialisation type mismatch 186bit-field initialisation is illegal in traditional C 187non-null byte ignored in string initializer 188no automatic aggregate initialization in traditional C 189assignment of struct/union illegal in traditional C 190empty array declaration: %s 191%s set but not used in function %s 192%s unused in function %s 193statement not reached 194label %s redefined 195case not in switch 196case label affected by conversion 197non-constant case expression 198non-integral case expression 199duplicate case in switch: %ld 200duplicate case in switch: %lu 201default outside switch 202duplicate default in switch 203case label must be of type ‘int’ in traditional C 204controlling expressions must have scalar type 205switch expression must have integral type 206enumeration value(s) not handled in switch 207loop not entered at top 208break outside loop or switch 209continue outside loop 210enum type mismatch in initialisation 211return value type mismatch 212cannot return incomplete type 213void function %s cannot return value 214function %s expects to return value 215function implicitly declared to return int 216function %s has return (e); and return; 217function %s falls off bottom without returning value 218ANSI C treats constant as unsigned, op %s 219concatenated strings are illegal in traditional C 220fallthrough on case statement 221initialisation of unsigned with negative constant 222conversion of negative constant to unsigned type 223end-of-loop code not reached 224cannot recover from previous errors 225static function called but not defined: %s() 226static variable %s unused 227const object %s should have initializer 228function cannot return const or volatile object 229questionable conversion of function pointer 230nonportable character comparison, op %s 231argument %s unused in function %s 232label %s unused in function %s 233struct %s never defined 234union %s never defined 235enum %s never defined 236static function %s unused 237redeclaration of formal parameter %s 238initialisation of union is illegal in traditional C 239constant argument to NOT 240assignment of different structures 241dubious operation on enum, op %s 242combination of ’%s’ and ’%s’, op %s 243dubious comparison of enums, op %s 244illegal structure pointer combination 245illegal structure pointer combination, op %s 246dubious conversion of enum to ’%s’ 247pointer casts may be troublesome 248floating-point constant out of range 249syntax error 250unknown character \%o 251malformed integer constant 252integer constant out of range 253unterminated character constant 254newline in string or char constant 255undefined or invalid # directive 256unterminated comment 257extra characters in lint comment 258unterminated string constant 259conversion to ’%s’ due to prototype, arg #%d 260previous declaration of %s 261previous definition of %s 262\" inside character constants undefined in traditional C 263\? undefined in traditional C 264\v undefined in traditional C 265%s C does not support ’long long’ 266’long double’ is illegal in traditional C 267shift equal to size of object 268variable declared inline: %s 269argument declared inline: %s 270function prototypes are illegal in traditional C 271switch expression must be of type ‘int’ in traditional C 272empty translation unit 273bit-field type ’%s’ invalid in ANSI C 274ANSI C forbids comparison of %s with %s 275cast discards ’const’ from pointer target type 276 277initialisation of ’%s’ with ’%s’ 278combination of ’%s’ and ’%s’, arg #%d 279combination of ’%s’ and ’%s’ in return 280must be outside function: /* %s */ 281duplicate use of /* %s */ 282must precede function definition: /* %s */ 283argument number mismatch with directive: /* %s */ 284fallthrough on default statement 285prototype declaration 286function definition is not a prototype 287function declaration is not a prototype 288dubious use of /* VARARGS */ with /* %s */ 289can’t be used together: /* PRINTFLIKE */ /* SCANFLIKE */ 290static function %s declared but not defined 291invalid multibyte character 292cannot concatenate wide and regular string literals 293argument %d must be ’char *’ for PRINTFLIKE/SCANFLIKE 294multi-character character constant 295conversion of ’%s’ to ’%s’ is out of range, arg #%d 296conversion of negative constant to unsigned type, arg #%d 297conversion to ’%s’ may sign-extend incorrectly, arg #%d 298conversion from ’%s’ may lose accuracy, arg #%d 299prototype does not match old style definition, arg #%d 300old style definition 301array of incomplete type 302%s returns pointer to automatic object 303ANSI C forbids conversion of %s to %s 304ANSI C forbids conversion of %s to %s, arg #%d 305ANSI C forbids conversion of %s to %s, op %s 306constant truncated by conversion, op %s 307static variable %s set but not used 308 309extra bits set to 0 in conversion of ’%s’ to ’%s’, op %s 310symbol renaming can’t be used on function arguments 311symbol renaming can’t be used on automatic variables 312%s C does not support // comments

July 5, 2000 LINT (7)
shtml">manServer 1.07 from lint.7 using doc macros.

 
Created by Blin Media, 2008-2013