Unused variable fixes related to conditional compilation
authorTom Tromey <tom@tromey.com>
Sun, 8 Jul 2018 18:39:36 +0000 (12:39 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 22 Jul 2018 19:20:02 +0000 (13:20 -0600)
commit157663703656814c751998747faadf41711e51ec
tree5a70fe3d56d57cc18207ff3577ad2c3c5e435446
parentf4e80e1301f916ae7952abaf4ff1ebeac00951b3
Unused variable fixes related to conditional compilation

This patch fixes various unused variable warnings that are related to
conditional compilation.  In these cases, either the variable is now
protected by the same #if as its uses, or the declaration is simply
lowered into the conditionally-compiled block.

gdb/ChangeLog
2018-07-22  Tom Tromey  <tom@tromey.com>

* windows-nat.c (saved_context): Conditionally define.
* remote.c (remote_target::remote_btrace_maybe_reopen):
Conditionally declare "warned".
* inflow.c (sigquit_ours): Conditionally define.
(new_tty): Move "tty" declaration inside #if.
* guile/guile.c (guile_datadir): Conditionally define.
* charset.c (set_be_le_names): Move some declarations inside #if.
* btrace.c (parse_xml_btrace): Move "errcode" declaration inside
#if.
(parse_xml_btrace_conf): Likewise.
gdb/ChangeLog
gdb/btrace.c
gdb/charset.c
gdb/guile/guile.c
gdb/inflow.c
gdb/remote.c
gdb/windows-nat.c
This page took 0.024916 seconds and 4 git commands to generate.