This was noticed during ongoing work to improve Automake integration. My guess is that some older version did use these variables in these procs, but that was changed before the code was imported into whatever became the Git repository.

----
ChangeLog entry:
        * runtest.exp (load_config): Remove unused global variable links.
        (load_generic_config): Likewise.
        (load_board_description): Likewise.
        (load_base_board_description): Likewise.
----
patch:
----
diff --git a/runtest.exp b/runtest.exp
index 327131a..a389c53 100644
--- a/runtest.exp
+++ b/runtest.exp
@@ -1255,9 +1255,7 @@ clone_output "\n\t\t=== $tool tests ===\n"
#

proc load_generic_config { name } {
-    global srcdir
    global libdir
-    global env
    global board
    global board_info
    global boards_dir
@@ -1286,7 +1284,6 @@ proc load_generic_config { name } {
#
proc load_config { args } {
    global srcdir
-    global board_type

    set found 0

@@ -1330,9 +1327,7 @@ proc load_tool_target_config { name } {
#

proc load_board_description { board_name args } {
-    global srcdir
    global libdir
-    global env
    global board
    global board_info
    global boards_dir
@@ -1398,9 +1393,7 @@ proc load_board_description { board_name args } {
#

proc load_base_board_description { board_name } {
-    global srcdir
    global libdir
-    global env
    global board
    global board_info
    global board_type

----


-- Jacob

_______________________________________________
DejaGnu mailing list
DejaGnu@gnu.org
https://lists.gnu.org/mailman/listinfo/dejagnu

Reply via email to