HP Code Advisor Diagnostics

Table 1-3 +wlint diagnostics (continued)
Diagnostic messageDiagnostic number
%n was set but never used2550
conversion from pointer to smaller integer2767
signed bit field of length 12108
type qualifier on return type is meaningless2815
missing return statement at end of non-void2940
standard requires that %n be given a type by a subsequent declaration ("int" assumed)3051
conversion from integer to smaller pointer3053
declaration hides %nd3348
declaration hides %nd4324
implicit conversion of a 64-bit integral type to a smaller integral type (potential portability
problem)
3373
conversion from explicitly unaligned type may cause misaligned access4224
conversion from explicitly unaligned type %t1 to %t2 may cause misaligned access4233
case type mismatch with switch expression type4239
declaration of "ptrdiff_t" does not match the expected type %t4240
redeclaration, function %nod was previously called without a prototype4241
no prototype or definition in scope for call to %sq4242
function declared with empty parentheses, consider replacing with a prototype4243
function called with different argument counts (%s vs. %s2)4247
64 bit migration: value could be truncated before cast to bigger sized type4249
the length of boolean type bit field is greater than 14250
the assignment has an excessive size for a bit field4251
the assignment may have an excessive size for a bit field4252
unsigned value cannot be less than zero4253
comparison of pointer with integer zero4274
the expression depends on order of evaluation4279
operator= does not have a check for the source and destination addresses being non-identical4285
abstract function type declared with empty parentheses, consider replacing with parameter
list or void.
4295
%s operation on boolean type4296
boolean value is used as array index4297
64 bit migration: multiply result could be truncated before cast to bigger sized type4299
Overflow while computing constant in left shift operation4300
no prototype or definition in scope for call to memory allocation routine %sq4313
if statement without body, did you insert an extra ';'?4314
One of the operands of the %sq operation is a string literal, strcmp() is recommended for
such comparison
4354
20 Diagnostics Categorization