From eeb56fa757d613c28cb8b17ba966a2036090dff6 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Thu, 14 Mar 2013 11:40:08 +0000 Subject: [PATCH] 2013-03-14 Sergio Durigan Junior * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing compiler warning. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/tracepoint.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 057133fc15c..75599ca9d99 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2013-03-14 Sergio Durigan Junior + + * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing + compiler warning. + 2013-03-13 Joel Brobecker * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]: diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c index bea6202f05f..419765bd731 100644 --- a/gdb/gdbserver/tracepoint.c +++ b/gdb/gdbserver/tracepoint.c @@ -2804,7 +2804,7 @@ static void cmd_qtv (char *own_buf) { ULONGEST num; - LONGEST val; + LONGEST val = 0; int err; char *packet = own_buf; -- 2.30.2