HP Code Advisor Diagnostics

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