HP-UX Cadvise Diagnostics Reference Guide (5900-1865, August 2012)

Table Of Contents
3055 types cannot be declared in anonymous unions.................................................................49
3056 returning pointer to local variable....................................................................................49
3105 #warning directive: %s....................................................................................................49
3138 format argument does not have string type.........................................................................50
3145 %t1 would have been promoted to %t2 when passed through the ellipsis parameter; use the
latter type instead...................................................................................................................50
3197 the prototype declaration of %nfd is ignored after this unprototyped redeclaration...................50
3290 Passing a non-POD object to a function with variable arguments has undefined behavior.
Object will be copied onto the stack instead of using a constructor................................................51
3348 declaration hides %nd....................................................................................................51
3353 %n has no corresponding member operator delete%s (to be called if an exception is thrown
during initialization of an allocated object)................................................................................51
3750 "\" followed by white space is not a line splice.................................................................52
4212 mismatch between character pointer types %t1 and %t2......................................................52
4225 suggest parentheses around comparison in operand of %sq................................................52
4227 padding struct with %s1 bytes to align member %sq2.........................................................53
4228 64 bit migration: conversion from %t1 to a more strictly aligned type %t2 may cause misaligned
access ..................................................................................................................................53
4229 64 bit migration: conversion from %t1 to %t2 may truncate value.........................................53
4230 64 bit migration: conversion from %t1 to %t2 may cause target of pointers to have a different
size.......................................................................................................................................54
4231 64 bit migration: conversion between types of different sizes has occurred (from %t1 to %t2
)...........................................................................................................................................54
4232 conversion from %t1 to a more strictly aligned type %t2 may cause misaligned access............54
4235 conversion from %t1 to %t2 may lose significant bits...........................................................55
4237 type cast from %t1 to %t2 may cause sign extension to a larger size integer. .........................55
4239 case type mismatch with switch expression type ................................................................55
4241 redeclaration, function %nod was previously called without a prototype.................................56
4242 No prototype or definition in scope for call to %sq.............................................................56
4243 function declared with empty parentheses, consider replacing with a prototype......................56
4244 extern storage class used with a function definition.............................................................56
4245 storage class used with a data definition...........................................................................57
4247 function called with different argument counts (%s vs. %s2)..................................................57
4248 comparison of unsigned integer with a signed integer.........................................................57
4249 64 bit migration: value could be truncated before cast to bigger sized type...........................57
4251 the assignment has an excessive size for a bit field..............................................................58
4253 unsigned value cannot be less than zero...........................................................................58
4255 padding size of struct %sq1 with %s2 bytes to alignment boundary......................................58
4259 suggest parentheses around the operands of %sq...............................................................59
4264 padding size of struct anonymous with %s bytes to alignment boundary................................59
4272 conversion from %t1 to %t2 may lose sign.........................................................................60
4273 floating-point equality and inequality comparisons may be inappropriate due to round off
common in floating-point computation.......................................................................................60
4274 comparison of pointer with integer zero.............................................................................60
4275 constant out of range (%s) for the operator........................................................................60
4276 relational operator %sq always evaluates to 'false'..............................................................61
4277 logical AND with a constant, do you mean to use '&'?.......................................................61
4278 the sub expression in logical expression is a constant..........................................................61
4279 the expression depends on order of evaluation...................................................................62
4281 assignment in control condition........................................................................................62
4286 return non-const handle to non-public data member may undermine encapsulation.................62
4289 endian porting: the definition of the union may be endian dependent...................................63
4290 endian porting: the initialization of char array may be endian dependent.............................63
4292 endian porting: the dereference of cast pointer may be endian dependent............................63
Contents 5