]> Git Repo - qemu.git/commit
configure: Do not ignore malloc value
authorLeonid Bloch <[email protected]>
Sun, 24 May 2020 22:12:04 +0000 (01:12 +0300)
committerPaolo Bonzini <[email protected]>
Wed, 10 Jun 2020 16:10:50 +0000 (12:10 -0400)
commitf2dfe54c74f768a5bf78c9e5918918727f9d9459
tree40290a59c6879028d81d34717828e6257392438e
parentc08790f48b2f41ef26d491fd4d460b74c06cefe4
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 <[email protected]>
Message-Id: <20200524221204[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
configure
This page took 0.026589 seconds and 4 git commands to generate.