HP Code Advisor Diagnostics

2174 expression has no effect
Cause:
The compiler detected that the expression has no effect.
Example:
int main() {
int index = 0;
for(index; index < 10; index++){ }
}
Action:
Modify the expression so that it has some effect or just remove it.
2175 subscript out of range
Cause:
The compiler has detected an array access that is outside the bounds of the array. The array
access might cause unpredictable behavior.
Example:
int main() {
int arr[10];
arr[10] = 20;
}
Action:
Specify an array subscript that is within the bounds of the array type.
Reference:
2177 %n was declared but never referenced
Cause:
An identifier was defined, but never referenced in the translation unit.
Example:
int main() {
int i;
return 0;
}
Action:
Examine your code to determine if this definition is needed in this module.
Reference:
2180 argument is incompatible with formal parameter
Cause:
The type of the argument passed to the function in the function call differs from the declared
type in the formal parameter.
Example:
int foo(int arg) { return arg; }
int main() {
foo("hello");
}
34 Diagnostics Details