|
|
Severe errors - return code 3
|
|
|
|
|
0
|
"The following statements are not inside
|
|
|
any loop:"
|
|
|
|
|
|
Indicates that a break or next statement has
|
|
|
appeared outside of a loop.
|
|
|
|
|
1
|
"The following statements are not inside
|
|
|
any procedure:"
|
|
|
|
|
|
Indicates that an error or return statement has
|
|
|
appeared outside of a procedure.
|
|
|
|
|
2
|
"These names were declared more than
|
|
|
once as a local variable:"
|
|
|
|
|
|
Indicates that the same local variable has been
|
|
|
declared more than once in a procedure's local
|
|
|
statement.
|
|
|
|
|
3
|
"These names appeared more than once in
|
|
|
the parameter list:"
|
|
|
|
|
|
Indicates that the same parameter has been
|
|
|
declared more than once in a procedure's parameter
|
|
|
list.
|
|
|
|
|
4
|
"These names were declared as both a
|
|
|
local variable and a parameter:"
|
|
|
|
|
|
Indicates that a procedure has a parameter and
|
|
|
local variable with the same name.
|
|
|
|
|
5
|
"Invalid left hand side of assignment:"
|
|
|
|
|
|
Indicates that an invalid expression (e.g. a set,
|
|
|
a sum, etc.) appears on the left hand side of an
|
|
|
assignment.
|
|
|
|
|
|
Serious errors - return code 2
|
|
|
|
|
6
|
"These names were used as the same loop
|
|
|
variable for nested loops:"
|
|
|
|
|
|
Indicates that an inner loop uses the same loop
|
|
|
control variable as an outer loop.
|
|
|
|
|
7
|
"There is unreachable code that will
|
|
|
never be executed:"
|
|
|
|
|
|
Indicates that a statement occurs immediately
|
|
|
after a break, next, return, or error statement.
|
|
|
Such a statement can never be reached during the
|
|
|
course of execution.
|
|
|
|
|
8
|
"These names were used as iteration
|
|
|
control variables for both a $, sum, or
|
|
|
product construct and a loop:"
|
|
|
|
|
|
Indicates that a construct such as seq, add, or $
|
|
|
uses the same control variable as an enclosing
|
|
|
loop.
|
|
|
|
|
9
|
"These names were used as global names
|
|
|
but were not declared:"
|
|
|
|
|
|
Indicates that a procedure makes use of some
|
|
|
global names, but has not declared them as such.
|
|
|
|
|
10
|
"Underscore names are reserved for use
|
|
|
in the library. These global names start
|
|
|
with _:"
|
|
|
|
|
|
Indicates use of a global name beginning with the
|
|
|
underscore ("_") character. Such names are
|
|
|
reserved for use by Maple's supplied library.
|
|
|
|
|
11
|
"These local variables were never used:"
|
|
|
|
|
|
Indicates that the local variables were declared,
|
|
|
but never used within the procedure. Removing the
|
|
|
declarations can marginally improve performance
|
|
|
and reduce memory usage.
|
|
|
|
|
12
|
"These exported variables were never used:"
|
|
|
|
|
|
Indicates that the module exports were declared,
|
|
|
but never used within the module. Removing the
|
|
|
declarations can marginally improve performance
|
|
|
and reduce memory usage.
|
|
|
|
|
13
|
"These local variables were used but
|
|
|
never assigned a value:"
|
|
|
|
|
|
Indicates that a local variable's value was used,
|
|
|
but that no value was ever assigned to it,
|
|
|
suggesting a coding error.
|
|
|
|
|
14
|
"These local variables were assigned a
|
|
|
value but otherwise not used:"
|
|
|
|
|
|
Indicates that a value was assigned to a local
|
|
|
variable, but that this variable was then never
|
|
|
used, suggesting a coding error.
|
|
|
|
|
15
|
"These parameters were never used:"
|
|
|
|
|
|
Indicates that the specified parameters of a
|
|
|
procedure were never actually referred to by name
|
|
|
within the procedure.
|
|
|