HP Code Advisor Diagnostics

2192 unrecognized character escape sequence.....................................................................................36
2193 zero used for undefined preprocessing identifier........................................................................36
2223 function %sq declared implicitly..................................................................................................37
2224 the format string requires additional arguments.........................................................................37
2225 the format string ends before this argument................................................................................37
2226 invalid format string conversion..................................................................................................37
2228 trailing comma is nonstandard.....................................................................................................37
2231 declaration is not visible outside of function...............................................................................38
2236 controlling expression is constant ...............................................................................................38
2237 selector expression is constant......................................................................................................38
2245 a nonstatic member reference must be relative to a specific object..............................................39
2248 pointer to reference is not allowed...............................................................................................39
2249 reference to reference is not allowed............................................................................................39
2250 reference to void is not allowed....................................................................................................40
2251 array of reference is not allowed..................................................................................................40
2252 reference %n requires an initializer..............................................................................................40
2260 explicit type is missing ("int" assumed)........................................................................................40
2263 duplicate base class name.............................................................................................................40
2265 %nd is inaccessible........................................................................................................................41
2267 old-style parameter list (anachronism).........................................................................................41
2269 conversion to inaccessible base class %t is not allowed...............................................................41
2276 name followed by :: must be a class or namespace name............................................................42
2278 a constructor or destructor may not return a value.....................................................................42
2306 default argument not at end of parameter list.............................................................................42
2314 only nonstatic member functions may be virtual.........................................................................42
2315 the object has cv-qualifiers that are not compatible with the member function..........................43
2319 pure specifier ("= 0") allowed only on virtual functions...............................................................43
2320 badly-formed pure specifier (only "= 0" is allowed).....................................................................43
2321 data member initializer is not allowed.........................................................................................44
2322 object of abstract class type %t is not allowed..............................................................................44
2323 function returning abstract class %t is not allowed......................................................................44
2325 inline specifier allowed on function declarations only................................................................45
2329 local class member %n requires a definition................................................................................45
2336 unknown external linkage specification.......................................................................................45
2340 value copied to temporary, reference to temporary used............................................................45
2363 invalid anonymous union -- nonpublic member is not allowed..................................................46
2364 invalid anonymous union -- member function is not allowed.....................................................46
2365 anonymous union at global or namespace scope must be declared static...................................47
2375 declaration requires a typedef name............................................................................................47
2381 extra ";" ignored............................................................................................................................47
2487 inline %n cannot be explicitly instantiated...................................................................................47
2513 a value of type %t1 cannot be assigned to an entity of type %t2.................................................48
2546 transfer of control bypasses initialization of: "variable"...............................................................48
2549 "variable" is used before its value is set........................................................................................48
2550 %n was set but never used............................................................................................................49
2656 transfer of control into a try block................................................................................................49
2767 conversion from pointer to smaller integer..................................................................................49
2815 type qualifier on return type is meaningless................................................................................50
2826 %n was never referenced..............................................................................................................50
2830 %n has no corresponding operator delete%s (to be called if an exception is thrown during
initialization of an allocated object)......................................................................................................50
2836 returning reference to local variable.............................................................................................50
2837 omission of explicit type is nonstandard ("int" assumed)............................................................51
2940 missing return statement at end of non-void function "function"...............................................51
2951 return type of function "main" must be int...................................................................................51
4 Table of Contents