HP Code Advisor Diagnostics Reference Guide (5900-1865, July 2011)
Add static storage class to the anonymous union declared at global or namespace scope. For
example:
static union {
int i;
};
Reference:
ANSI/ISO C++ 9.5(3)
2.71 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:
2.72 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:
2.73 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
44 Diagnostics Details