Re: [PATCH] configure: Do not ignore malloc value

2020-06-04 Thread Paolo Bonzini
On 25/05/20 00:12, Leonid Bloch wrote: > From: Leonid Bloch > > Not checking the value of malloc will cause a warning with GCC 10.1, > which may result in configuration failure, with the following line in > config.log: > > config-temp/qemu-conf.c:2:18: error: ignoring return value of ‘malloc’ >

Re: [PATCH] configure: Do not ignore malloc value

2020-05-24 Thread Philippe Mathieu-Daudé
On 5/25/20 12:12 AM, Leonid Bloch wrote: > From: Leonid Bloch > > Not checking the value of malloc will cause a warning with GCC 10.1, > which may result in configuration failure, with the following line in > config.log: > > config-temp/qemu-conf.c:2:18: error: ignoring return value of ‘malloc’

[PATCH] configure: Do not ignore malloc value

2020-05-24 Thread Leonid Bloch
From: Leonid Bloch Not checking the value of malloc will cause a warning with GCC 10.1, which may result in configuration failure, with the following line in config.log: config-temp/qemu-conf.c:2:18: error: ignoring return value of ‘malloc’ declared with attribute ‘warn_unused_result’ [-Werror=