From: Jan Kratochvil Date: Fri, 1 Jun 2012 16:50:11 +0000 (+0000) Subject: gdb/gdbserver/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=89dc0afdc93f3688377cab4c5ddae1630e8d50eb;p=binutils-gdb.git gdb/gdbserver/ Fix gcc -flto compilation warning. * server.c (main): Make variable multi_mode and attach volatile. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index f364c01d46c..a52d9442782 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2012-06-01 Jan Kratochvil + + Fix gcc -flto compilation warning. + * server.c (main): Make variable multi_mode and attach volatile. + 2012-05-30 Thiago Jung Bauermann * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 30bb3c32e9e..9fd550b0971 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -2604,8 +2604,8 @@ main (int argc, char *argv[]) int pid; char *arg_end, *port; char **next_arg = &argv[1]; - int multi_mode = 0; - int attach = 0; + volatile int multi_mode = 0; + volatile int attach = 0; int was_running; while (*next_arg != NULL && **next_arg == '-')