]> git.dujemihanovic.xyz Git - u-boot.git/commit
common: splash_source: fix -Wint-to-pointer-cast warning
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 7 Dec 2020 08:18:51 +0000 (17:18 +0900)
committerAnatolij Gustschin <agust@denx.de>
Fri, 19 Feb 2021 21:17:10 +0000 (22:17 +0100)
commita0b74acb9b4a21405e7441c808d538a460a3678f
treec3acc364193744b12bae7b5d9c08038ceee3194c
parent766927a7595a6f18fef460a06fdac370fd9e02cf
common: splash_source: fix -Wint-to-pointer-cast warning

Fix -Wint-to-pointer-cast warning

common/splash_source.c: In function 'splash_load_raw':
common/splash_source.c:100:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  100 |  bmp_hdr = (struct bmp_header *)bmp_load_addr;
      |            ^
common/splash_source.c: In function 'splash_sf_read_raw':
common/splash_source.c:39:47: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   39 |  return spi_flash_read(sf, offset, read_size, (void *)bmp_load_addr);
      |                                               ^

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/splash_source.c