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

Table Of Contents
2375 declaration requires a typedef name
Cause:
In a typedef declaration, the typedef name is missing. This case can occur when a declaration
tries to declare both a tag and a typedef, but the name of the typedef is not included.
Example: typedef int;
Action:
Either remove the typedef keyword or add a typedef name.
Reference:
2381 extra ";" ignored
Cause:
An extra semicolon was found at the end of some code construct, which was perhaps added by
mistake. It will be ignored.
Example: int main() {};
Action:
Remove the extra semicolon.
Reference:
2487 inline %n cannot be explicitly instantiated
Cause:
When explicit instantiation of a class template is done, inline functions will not be instantiated.
This diagnostic is just to mention this fact.
Example:
template <typename T>
class X {
void foo() {}
};
template class X<int>;
Action:
Providing explicit instantiations for templates is a old programming style and it is not recommended.
Check if you really need to do explicit instantiations in your code.
Reference:
ANSI/ISO C++ 14.7.2
2513 a value of type %t1 cannot be assigned to an entity of type %t2
Cause:
The types of variables used in the assignment are incompatible.
Example:
long double d = 0.0;
char *c = 0;
c =
Action:
44 Diagnostics Details