Friday, December 26, 2008

Warning code in C Programming Language

Warning Message xxx

ANSI Violations

Assigning 'type' to 'enumeration' eas
Bit fields must be signed or unsigned int bbf
Both return and return with a value used ret
Declare type 'type' prior to use in prototype dpu
Division by zero zdi
Hexadecimal value contains more than 3 digits big
Initializing 'enumeration' with 'type' bei
'identifier' is declared as both external and static ext
Ill-formed pragma ill
Initialization is only partially bracketed pin
Redefinition of 'macro' is not identical dup
Suspicious pointer conversion sus
Undefined structure 'structure' stu
Void functions may not return a value voi

Frequent Errors

Code has no effect eff
Function should return a value rvl
Parameter 'parameter' is never used par
Possible use of 'identifier' before definition def
Possibly incorrect assignment pia
Unreachable code rch

Less Frequent Errors

Ambiguous operators need parentheses amb
Array variable 'identifier' is near ias
Call to function with no prototype pro
Call to function 'function' with no prototype pro
Condition is always false wccc
Condition is always true wccc
'identifier' declared but never used use
'identifier' is assigned a value that is never used aus
No declaration for function 'function' nod
Structure passed by value stv
Superfluous & with function amp

Portability Warnings

Constant is long cln
Constant out of range in comparison rng
Conversion may lose significant digits sig
Nonportable pointer comparison cpt
Nonportable pointer conversion rpt
Mixing pointers to signed and unsigned char ucp

No comments:

Blog List