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

Table Of Contents
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");
}
Action:
Ensure that the types of the argument passed matches with the types of formal parameters of the
function.
Reference:
2175 subscript out of range 31