aboutsummaryrefslogtreecommitdiff
path: root/lib/target.exp
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2016-03-28 11:51:41 +1100
committerBen Elliston <bje@gnu.org>2016-03-28 11:51:41 +1100
commit883ffd3e6dcedfccb39969fd9791e70c901410ec (patch)
treec9026d0e7d39068361acf297d37b88725eae6b8a /lib/target.exp
parenta57bfcfb68c3ac388a5ba5b2baca8e8c1195690b (diff)
downloaddejagnu-883ffd3e6dcedfccb39969fd9791e70c901410ec.zip
dejagnu-883ffd3e6dcedfccb39969fd9791e70c901410ec.tar.gz
dejagnu-883ffd3e6dcedfccb39969fd9791e70c901410ec.tar.bz2
* runtest.exp: Fixes identified by the Frink static analyser:
(1) use -- in switch commands for safety, (2) remove unreachable return commands after error commands, (3) replace abbreviated "info proc" with "info procs", (4) use -- in unset commands for safety where the variable name is itself a variable. * lib/dg.exp: Likewise. * lib/debugger.exp: Likewise. * lib/framework.exp: Likewise. * lib/remote.exp: Likewise. * lib/target.exp: Likewise. * lib/targetdb.exp: Likewise. * lib/telnet.exp: Likewise. * lib/utils.exp: Likewise.
Diffstat (limited to 'lib/target.exp')
-rw-r--r--lib/target.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/target.exp b/lib/target.exp
index 6634345..4c73c61 100644
--- a/lib/target.exp
+++ b/lib/target.exp
@@ -296,7 +296,7 @@ proc prune_warnings { text } {
#
proc target_compile {source destfile type options} {
set target [target_info name]
- if { [info proc ${target}_compile] != "" } {
+ if { [info procs ${target}_compile] != "" } {
return [${target}_compile $source $destfile $type $options]
} else {
return [default_target_compile $source $destfile $type $options]