Fix warning on 64bit build environment 73/265573/1
authorYoungjae Cho <y0.cho@samsung.com>
Fri, 22 Oct 2021 07:45:27 +0000 (16:45 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Fri, 22 Oct 2021 07:49:48 +0000 (16:49 +0900)
Change-Id: Ibb001db94bd0ec1b29efab43e1e38fc0ff802150
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
plugins/wearable/display/display-handler.c
src/cpu/pmqos.c
src/usb/usb-debug.c

index 1310419..19517ed 100644 (file)
@@ -19,6 +19,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
+#include <stdint.h>
 #include <error.h>
 
 #include "auto-brightness-sensorhub.h"
@@ -50,7 +51,7 @@ static bool aod_clock_displayed; /* True while AOD screen is displayed */
 
 static gboolean lcdon_from_aod_cb(gpointer data)
 {
-       int level = (int) data;
+       int level = (int)(intptr_t) data;
 
        autobrt_timer = 0;
 
@@ -99,7 +100,7 @@ static GVariant *dbus_autobrightnesschanged(GDBusConnection *conn,
                 * heavy loaded time and therefore make it change smoothly. */
                if (aod_clock_displayed) {
                        autobrtlevel = level; /* reserve the level, defer applying */
-                       autobrt_timer = g_timeout_add(200, lcdon_from_aod_cb, (gpointer)level);
+                       autobrt_timer = g_timeout_add(200, lcdon_from_aod_cb, (gpointer)(intptr_t) level);
                } else { /* S_NORMAL state or LCDON from usual OFF state, not from AOD */
                        display_info.set_brightness_level(level);
                }
index c53dd8d..1b36a77 100644 (file)
@@ -207,7 +207,6 @@ static const dbus_interface_u dbus_interface = {
 static int delayed_init_done(void *data)
 {
        static int done;
-       int ret = 0;
 
        if (data == NULL)
                goto out;
index 0681742..3f138d4 100644 (file)
@@ -18,6 +18,7 @@
 
 
 #include <stdbool.h>
+#include <stdint.h>
 
 #include <vconf.h>
 #include <hal/device/hal-usb_gadget-interface.h>
@@ -76,7 +77,7 @@ static void usb_debug_changed(keynode_t *key, void *data)
 
        _I("USB debug mode is changed to %s.", mode ? "ON" : "OFF");
 
-       device_notify(DEVICE_NOTIFIER_USB_DEBUG_MODE, (void *)mode);
+       device_notify(DEVICE_NOTIFIER_USB_DEBUG_MODE, (void *)(intptr_t) mode);
 }
 
 static int usb_debug_mode_changed(void *on)
@@ -96,7 +97,7 @@ static int usb_debug_mode_changed(void *on)
         * debug off + rndis off : USB_FUNCTION_MTP | USB_FUNCTION_ACM
         */
 
-       if ((int)on) {
+       if ((int)(intptr_t) on) {
                if (rndis_is_enabled)
                        new_mode = USB_FUNCTION_ACM | USB_FUNCTION_SDB | USB_FUNCTION_RNDIS;
                else