From 89dc0afdc93f3688377cab4c5ddae1630e8d50eb Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Fri, 1 Jun 2012 16:50:11 +0000 Subject: [PATCH] gdb/gdbserver/ Fix gcc -flto compilation warning. * server.c (main): Make variable multi_mode and attach volatile. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/server.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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 == '-') -- 2.30.2