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

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)
Cause:
For member operator new, a corresponding member operator delete needs to be provided so that
it can be called for proper destruction in case an exception is thrown during the initialization of
the allocated object.
Example:
struct Pool {
Pool() { }
void* operator new(unsigned long, void*) { return 0; }
} object;
Action:
Provide a corresponding member operator delete to be called if an exception is thrown during the
initialization of the allocated object.
Reference:
2.99 3750 "\" followed by white space is not a line splice
Cause:
This warning is issued when a space is found after \ (backslash) at the end of line.
Example:
int main()
{
int something; \
int anotherthing;
}
Action:
A space after \ (backslash) at the end of line is unusual, and might be done by mistake - check if
this is what you intended.
Reference:
2.100 4212 mismatch between character pointer types %t1 and %t2
Cause:
C allows conversion between pointers to interchangeable types, but this can be unsafe. Mismatch
between character pointer types is diagnosed with a unique message so it can be suppressed if
desired.
Example:
int foo(char *x, unsigned char *y) {
x = y; // warning 4212 here
}
Action:
If this conversion is safe for your code, then suppress this warning by providing an explicit cast.
Reference:
C99 6.3.2.3
2.101 4225 suggest parentheses around comparison in operand of %sq
Cause:
52 Diagnostics Details