Run-time Error tab check boxes

The following are the check boxes in the Run-time Error tab.
Run-time Error tab check boxes
Check box Description
Array Bounds
Checks array bound indexes. For constant indexes, this check occurs at compile-time; for other expressions at run-time. Equivalent to the -check=bounds build-time command line option.
The error message is: "Array index out of bounds"
Assignment Bounds
When assigning a value to a variable or field which is a small integral type such as a bit field, this checks if the value is within the range of the type. Equivalent to the -check=assignbound build-time command line option.
The error message is:
"Assignment out of bounds"
or
"Value outside of type"
NULL Dereference
Generates an error message for all dereferences of NULL pointers. Equivalent to the -check=nilderef build-time command line option. The error message is: "NULL pointer dereference"
Case/Switch Statement
Generates a warning if the case/switch expression does not match any of the case/switch labels. This does not apply when using a default case/switch label. Equivalent to the -check=switch build-time command line option.
The error message is: "Case/switch index out of bounds"
Divide by Zero
Generates an error message indicating a divide by zero. Equivalent to the -check=zerodivide build-time command line option. The error message is: "Divide by 0"
Unused Variables
Generates an error message at compile-time for declared variables never used. Equivalent to the -check=usevariable build-time command line option.
The error message is: "Unused variable"
Pascal Variants
Checks that the tag field of a variable declared as a variant record type matches one of the case selectors in the record. This applies only to Pascal. Equivalent to the -check=variant build-time command line option.
The error message is: "Bad variant for reference"
Watchpoint
Enables the debugger's watchpoint command to create one watchpoint without using an assertion. Equivalent to the -check=watchpoint build-time command line option. See "watchpoint".
The error message is: "Write to watchpoint"
Return
Generates a warning if a non-void procedure ends without an explicit return. For example, the following procedure generates a warning when exiting:
int func() {
for (int x = 0; x< 10; x++) {
if (x == 10)
return x;
}
}
This option only applies to C and C++. Equivalent to the -check=return build-time command line option.
The error message is: "No value returned from function"

Related topic:


Previous

Next



Copyright © 1999, Green Hills Software. All rights reserved.