RE: [PATCH 1/3] gdbstub: prevent uninitialized warning

2020-03-27 Thread Chenqun (kuhn)
;Subject: Re: [PATCH 1/3] gdbstub: prevent uninitialized warning > > >Chen Qun writes: > >> According to the glib function requirements, we need initialise >> the variable. Otherwise there will be compilation warnings: >> >> qemu/gdbstub.c: In function ‘ha

Re: [PATCH 1/3] gdbstub: prevent uninitialized warning

2020-03-27 Thread Alex Bennée
Chen Qun writes: > According to the glib function requirements, we need initialise > the variable. Otherwise there will be compilation warnings: > > qemu/gdbstub.c: In function ‘handle_query_thread_extra’: > /usr/include/glib-2.0/glib/glib-autocleanups.h:28:3: warning: > ‘cpu_name’ may be

Re: [PATCH 1/3] gdbstub: prevent uninitialized warning

2020-03-25 Thread Miroslav Rezanina
On Wed, Mar 25, 2020 at 05:21:35PM +0800, Chen Qun wrote: > According to the glib function requirements, we need initialise > the variable. Otherwise there will be compilation warnings: > > qemu/gdbstub.c: In function ‘handle_query_thread_extra’: > /usr/include/glib-2.0/glib/glib-autocleanups

[PATCH 1/3] gdbstub: prevent uninitialized warning

2020-03-25 Thread Chen Qun
According to the glib function requirements, we need initialise the variable. Otherwise there will be compilation warnings: qemu/gdbstub.c: In function ‘handle_query_thread_extra’: /usr/include/glib-2.0/glib/glib-autocleanups.h:28:3: warning: ‘cpu_name’ may be used uninitialized in this func