diff options
| author | Leonid Bloch | 2020-05-25 00:12:04 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2020-06-10 18:10:50 +0200 |
| commit | f2dfe54c74f768a5bf78c9e5918918727f9d9459 (patch) | |
| tree | 40290a59c6879028d81d34717828e6257392438e /include/exec/memory.h | |
| parent | qemu/thread: Mark qemu_thread_exit() with 'noreturn' attribute (diff) | |
| download | qemu-f2dfe54c74f768a5bf78c9e5918918727f9d9459.tar.gz qemu-f2dfe54c74f768a5bf78c9e5918918727f9d9459.tar.xz qemu-f2dfe54c74f768a5bf78c9e5918918727f9d9459.zip | |
configure: Do not ignore malloc value
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=unused-result]
2 | int main(void) { malloc(1); return 0; }
| ^~~~~~~~~
Signed-off-by: Leonid Bloch <lb.workbox@gmail.com>
Message-Id: <20200524221204.9791-1-lb.workbox@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/exec/memory.h')
0 files changed, 0 insertions, 0 deletions
