HP Code Advisor Diagnostics Reference Guide (5900-1865, July 2011)

Table 9 +w/+w1 diagnostics (continued)
Diagnostic messageDiagnostic number
Conversion of string literal from const to non-const has been deprecated4163
comparison of enum (represented as an unsigned integer) with zero4217
comparison of unsigned integer with an enumerated value of zero4218
padding struct with %s1 bytes to align member %sq24227
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
ignoring return value of %n4246
function called with different argument counts (%s vs. %s2)4247
comparison of unsigned integer with a signed integer4248
the length of boolean type bit field is greater than 14250
ec_unsigned_cannot_less_than_zero4253
padding size of struct %sq1 with %s2 bytes to alignment boundary4253
padding struct with %s bytes to align member <anonymous>4263
padding size of struct <anonymous> with %s bytes to alignment boundary4264
ec_lp64_unsigned_compare_with_signed4280
assignment in control condition4281
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
expression has no effect4301
declaration hides %nd4324
operand of sizeof is a constant rvalue, this might not be what you intended4356
1.10 Diagnostic messages turned off by default
Cadvise does not emit certain diagnostics under any command line options. To get these diagnostics
you must explicitly mention the +Ww command line option followed by the <diag no>. Following
table lists the diagnostic messages that are turned off by default.
Table 10 Diagnostic messages that are turned off by default
Diagnostic messageDiagnostic number
ignoring return value of %n4246
64 bit migration: struct %sq (recursively) contains a long or pointer field, its size will change
based on the data model
4325
size of types of consecutive bitfields are different, bitfield packing behavior may be different
across compiler
4360
64 bit migration: size of types of consecutive bitfields are different, bitfield packing behavior
may be different across compilers
4361
22 Diagnostics Categorization