From: Drew Moseley Date: Thu, 13 Aug 1998 20:15:20 +0000 (+0000) Subject: Added a scope-level around the contents of an #ifdef in X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1dd251f99ddcc3d09548e71704066aeba8be8d4a;p=binutils-gdb.git Added a scope-level around the contents of an #ifdef in gdbtk_cleanup() so that the variable declarations in there would not be illegal in a C compilation. --- diff --git a/gdb/ChangeLog-gdbtk b/gdb/ChangeLog-gdbtk index 42b7b0df7fa..2b7e46a8f15 100644 --- a/gdb/ChangeLog-gdbtk +++ b/gdb/ChangeLog-gdbtk @@ -1,3 +1,9 @@ +Thu Aug 13 15:09:59 1998 Drew Moseley + + * gdbtk.c (gdbtk_cleanup): added a scope-level around the contents + of the #ifdef so that the variable declarations in there would not + be illegal in a C compilation. + Mon Jul 27 13:07:16 1998 Martin M. Hunt * gdbtk.c (gdbtk_call_command): Removed because it is now diff --git a/gdb/gdbtk.c b/gdb/gdbtk.c index 01cf3ddd60e..e8d31ad5658 100644 --- a/gdb/gdbtk.c +++ b/gdb/gdbtk.c @@ -298,8 +298,10 @@ gdbtk_cleanup (dummy) { Tcl_Eval (gdbtk_interp, "gdbtk_cleanup"); #ifdef IDE - struct ide_event_handle *h = (struct ide_event_handle *) dummy; - ide_interface_deregister_all (h); + { + struct ide_event_handle *h = (struct ide_event_handle *) dummy; + ide_interface_deregister_all (h); + } #endif Tcl_Finalize (); }