diff options
author | Stefan Weil <sw@weilnetz.de> | 2015-03-01 13:52:06 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2015-03-10 08:15:34 +0300 |
commit | 2a0457bbba10c208358e4e52642abeadd5f10c33 (patch) | |
tree | 82ca2b75a71b4d0ca825eeff2fb83f484daa83a0 /migration | |
parent | 52b831de0099e627ee3505cb1c0c3d8eeefd3d65 (diff) | |
download | qemu-2a0457bbba10c208358e4e52642abeadd5f10c33.tar.gz qemu-2a0457bbba10c208358e4e52642abeadd5f10c33.tar.bz2 qemu-2a0457bbba10c208358e4e52642abeadd5f10c33.zip |
oslib-posix: Fix compiler warning (-Wclobbered) and simplify the code
gcc reports this warning with -Wclobbered:
util/oslib-posix.c: In function ‘os_mem_prealloc’:
util/oslib-posix.c:374:49: error: argument ‘memory’ might be clobbered by
‘longjmp’ or ‘vfork’ [-Werror=clobbered]
Fix this and simplify the code by using an existing macro.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'migration')
0 files changed, 0 insertions, 0 deletions