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

Table Of Contents
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:
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:
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
4225 suggest parentheses around comparison in operand of %sq
Cause:
The bitwise operator | has lower precedence than the comparison operator, possibly changing
the semantics of the expression. This can be caused by other combinations of comparison and
bitwise operators as well.
Example:
bool check(unsigned p1, unsigned p2, unsigned mask) {
return ( p1 == p2 | mask );
}
Action:
52 Diagnostics Details