]> Git Repo - qemu.git/commit
exynos4210: workaround UBSAN compilation error
authorMarc-André Lureau <[email protected]>
Tue, 16 Jan 2018 15:11:50 +0000 (16:11 +0100)
committerPaolo Bonzini <[email protected]>
Mon, 5 Feb 2018 17:09:45 +0000 (18:09 +0100)
commit6c549dc14113a8a389ef6cf8c9078df66e208ebd
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 <[email protected]>
Message-Id: <20180116151152[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
hw/display/exynos4210_fimd.c
This page took 0.025126 seconds and 4 git commands to generate.