exynos4210: workaround UBSAN compilation error
commit6c549dc14113a8a389ef6cf8c9078df66e208ebd
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 16 Jan 2018 15:11:50 +0000 (16 16:11 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 5 Feb 2018 17:09:45 +0000 (5 18:09 +0100)
tree592547782a8a8931be940c591a750477c0dea831
parent3e32370a96d2ad82839d97e7e622bca793de8af5
exynos4210: workaround UBSAN compilation error

gcc 5.4.0-6ubuntu1~16.04.5 build with UBSAN enabled error:

  CC      hw/display/exynos4210_fimd.o
/home/petmay01/linaro/qemu-for-merges/hw/display/exynos4210_fimd.c: In
function ‘fimd_get_buffer_id’:
/home/petmay01/linaro/qemu-for-merges/hw/display/exynos4210_fimd.c:1105:5:
error: case label does not reduce to an integer constant
     case FIMD_WINCON_BUF2_STAT:

Because FIMD_WINCON_BUF2_STAT case contains an integer
overflow, use U suffix to get the unsigned type.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20180116151152.4040-2-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/display/exynos4210_fimd.c