linux-user: Export use is_error(), use it to avoid warnings
commit1129dd712157b42397275681e6397bf2d6bdfa0e
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Mon, 4 Jun 2018 15:37:21 +0000 (4 12:37 -0300)
committerLaurent Vivier <laurent@vivier.eu>
Mon, 11 Jun 2018 12:40:11 +0000 (11 14:40 +0200)
tree5b2c920910db043477d994739d2efd08b840ec34
parent9f55925b8f50a962d1d08d815044db7767ae3838
linux-user: Export use is_error(), use it to avoid warnings

This fixes:

  linux-user/flatload.c:740:9: warning: Loss of sign in implicit conversion
      if (res > (unsigned long)-4096)
          ^~~

Reported-by: Clang Static Analyzer
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20180604153722.24956-2-f4bug@amsat.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/qemu.h
linux-user/syscall.c