Commit fcd8413652eb53b67d4845190407676960932291

Authored by Ye Li
1 parent d938089f3a

MLK-23964-3 splash: Fix build warning on 64 bits CPU

Meet below warning on ARM64 platform, because the bmp_load_addr
is defined to u32.

common/splash.c: In function ‘splash_video_logo_load’:
common/splash.c:74:9: warning: cast to pointer from integer
of different size [-Wint-to-pointer-cast]
   74 |  memcpy((void *)bmp_load_addr, bmp_logo_bitmap,

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 037db06f9441b0e889c730f78874d3b120942ea9)

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -59,7 +59,7 @@
59 59 static int splash_video_logo_load(void)
60 60 {
61 61 char *splashimage;
62   - u32 bmp_load_addr;
  62 + ulong bmp_load_addr;
63 63  
64 64 splashimage = env_get("splashimage");
65 65 if (!splashimage)