Re: [PATCH] i386: Fix GCC warning with snprintf when HAX is enabled

2020-03-01 Thread Richard Henderson
On 3/1/20 8:35 AM, Julio Faracco wrote: > When HAX is enabled (--enable-hax), GCC 9.2.1 reports issues with > snprintf(). This commit is checking if snprintf returns an error. This > is a simple way to avoid this warnings. > > For more details, one example of warning: > CC i386-softmmu/targ

[PATCH] i386: Fix GCC warning with snprintf when HAX is enabled

2020-03-01 Thread Julio Faracco
When HAX is enabled (--enable-hax), GCC 9.2.1 reports issues with snprintf(). This commit is checking if snprintf returns an error. This is a simple way to avoid this warnings. For more details, one example of warning: CC i386-softmmu/target/i386/hax-posix.o qemu/target/i386/hax-posix.c: In