diff options
| author | Stefan Weil | 2015-03-01 13:52:06 +0100 |
|---|---|---|
| committer | Michael Tokarev | 2015-03-10 06:15:34 +0100 |
| commit | 2a0457bbba10c208358e4e52642abeadd5f10c33 (patch) | |
| tree | 82ca2b75a71b4d0ca825eeff2fb83f484daa83a0 /scripts | |
| parent | disas/microblaze: Fix warnings caused by missing 'static' attribute (diff) | |
| download | qemu-2a0457bbba10c208358e4e52642abeadd5f10c33.tar.gz qemu-2a0457bbba10c208358e4e52642abeadd5f10c33.tar.xz 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 'scripts')
0 files changed, 0 insertions, 0 deletions
