display: Fix build warning, casting pointer into integer 44/296444/1 accepted/tizen/unified/20230731.175310
authorYoungjae Cho <y0.cho@samsung.com>
Fri, 28 Jul 2023 01:04:37 +0000 (10:04 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Fri, 28 Jul 2023 01:11:36 +0000 (10:11 +0900)
The warning happens when casting 64bit pointer into 32bit integer.
Casting into intermeidate type, intptr_t, suppresses such warning.

Change-Id: I56bbce61f7c43311574e8cfb65237ad49954cf55
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/display/display.c

index 94fe277..223cb8c 100644 (file)
@@ -412,7 +412,7 @@ static const struct uevent_handler lcd_uevent_ops = {
 
 static gboolean handle_sighup(gpointer data)
 {
-       int signo = (int) data;
+       int signo = (int)(intptr_t) data;
        _I("received sig hub %d", signo);
        pm_save_logdump();