[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] gdbstub: fix compiler complaining
From: |
Richard Henderson |
Subject: |
Re: [PATCH] gdbstub: fix compiler complaining |
Date: |
Thu, 26 Mar 2020 12:50:24 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
On 3/26/20 8:14 AM, Denis Plotnikov wrote:
> ./gdbstub.c: In function ‘handle_query_thread_extra’:
> /usr/include/glib-2.0/glib/glib-autocleanups.h:28:10:
> error: ‘cpu_name’ may be used uninitialized in this function
> [-Werror=maybe-uninitialized]
> g_free (*pp);
> ^
> ./gdbstub.c:2063:26: note: ‘cpu_name’ was declared here
> g_autofree char *cpu_name;
> ^
> cc1: all warnings being treated as errors
>
> Signed-off-by: Denis Plotnikov <address@hidden>
> ---
> gdbstub.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Richard Henderson <address@hidden>
r~