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

2.89 3051 standard requires that %n be given a type by a subsequent declaration (\"int\"
assumed)...............................................................................................................................49
2.90 3055 types cannot be declared in anonymous unions..........................................................49
2.91 3056 returning pointer to local variable.............................................................................49
2.92 3105 #warning directive: %s............................................................................................50
2.93 3138 format argument does not have string type.................................................................50
2.94 3145 %t1 would have been promoted to %t2 when passed through the ellipsis parameter; use
the latter type instead..............................................................................................................50
2.95 3197 the prototype declaration of %nfd is ignored after this unprototyped redeclaration...........50
2.96 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
2.97 3348 declaration hides %nd............................................................................................51
2.98 3353 %n has no corresponding member operator delete%s (to be called if an exception is
thrown during initialization of an allocated object)......................................................................52
2.99 3750 "\" followed by white space is not a line splice..........................................................52
2.100 4212 mismatch between character pointer types %t1 and %t2.............................................52
2.101 4225 suggest parentheses around comparison in operand of %sq........................................52
2.102 4227 padding struct with %s1 bytes to align member %sq2................................................53
2.103 4228 64 bit migration: conversion from %t1 to a more strictly aligned type %t2 may cause
misaligned access .................................................................................................................53
2.104 4229 64 bit migration: conversion from %t1 to %t2 may truncate value................................53
2.105 4230 64 bit migration: conversion from %t1 to %t2 may cause target of pointers to have a
different size..........................................................................................................................54
2.106 4231 64 bit migration: conversion between types of different sizes has occurred (from %t1
to %t2 ).................................................................................................................................54
2.107 4232 conversion from %t1 to a more strictly aligned type %t2 may cause misaligned
access...................................................................................................................................55
2.108 4235 conversion from %t1 to %t2 may lose significant bits..................................................55
2.109 4237 type cast from %t1 to %t2 may cause sign extension to a larger size integer. ................55
2.110 4239 case type mismatch with switch expression type ........................................................55
2.111 4241 redeclaration, function %nod was previously called without a prototype.........................56
2.112 4242 No prototype or definition in scope for call to %sq.....................................................56
2.113 4243 function declared with empty parentheses, consider replacing with a prototype..............56
2.114 4244 extern storage class used with a function definition.....................................................57
2.115 4245 storage class used with a data definition...................................................................57
2.116 4247 function called with different argument counts (%s vs. %s2)..........................................57
2.117 4248 comparison of unsigned integer with a signed integer.................................................57
2.118 4249 64 bit migration: value could be truncated before cast to bigger sized type...................58
2.119 4251 the assignment has an excessive size for a bit field......................................................58
2.120 4253 unsigned value cannot be less than zero..................................................................58
2.121 4255 padding size of struct %sq1 with %s2 bytes to alignment boundary..............................59
2.122 4259 suggest parentheses around the operands of %sq......................................................59
2.123 4264 padding size of struct anonymous with %s bytes to alignment boundary.......................59
2.124 4272 conversion from %t1 to %t2 may lose sign.................................................................60
2.125 4273 floating-point equality and inequality comparisons may be inappropriate due to round
off common in floating-point computation...................................................................................60
2.126 4274 comparison of pointer with integer zero....................................................................60
2.127 4275 constant out of range (%s) for the operator................................................................61
2.128 4276 relational operator %sq always evaluates to 'false'.....................................................61
2.129 4277 logical AND with a constant, do you mean to use '&'?...............................................61
2.130 4278 the sub expression in logical expression is a constant.................................................62
2.131 4279 the expression depends on order of evaluation..........................................................62
2.132 4281 assignment in control condition................................................................................62
2.133 4286 return non-const handle to non-public data member may undermine encapsulation.........63
2.134 4289 endian porting: the definition of the union may be endian dependent..........................63
Contents 5