From: gs86.lee Date: Mon, 18 Apr 2016 00:28:56 +0000 (+0900) Subject: Fixed build warnings X-Git-Tag: accepted/tizen/mobile/20160418.083608^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=87ee8b10016f7733724c4c41c7946fe6be7a11b3;p=apps%2Fnative%2Fstarter.git Fixed build warnings Change-Id: I37489e3cacae94146fac6c765a5235f35322f637 --- diff --git a/include/mobile/home_mgr.h b/include/mobile/home_mgr.h index bea9a36..2130a3f 100644 --- a/include/mobile/home_mgr.h +++ b/include/mobile/home_mgr.h @@ -20,6 +20,8 @@ extern int home_mgr_get_home_pid(void); extern int home_mgr_get_volume_pid(void); +extern int home_mgr_get_indicator_pid(void); +extern int home_mgr_get_quickpanel_pid(void); extern void home_mgr_init(void *data); extern void home_mgr_fini(void); diff --git a/src/mobile/hw_key.c b/src/mobile/hw_key.c index 84cb1d7..436da6f 100644 --- a/src/mobile/hw_key.c +++ b/src/mobile/hw_key.c @@ -528,7 +528,7 @@ void hw_key_destroy_window(void) #define CANCEL_KEY_TIMER_SEC 0.3 -const char *key_name[38] = { +const char *key_name[KEY_NAME_MAX] = { "XF86AudioRaiseVolume", "XF86AudioLowerVolume", "XF86PowerOff", @@ -566,7 +566,6 @@ const char *key_name[38] = { "XF86Game", "XF86VoiceWakeUp_LPSD", "XF86VoiceWakeUp", - "KEY_NAME_MAX", }; diff --git a/src/mobile/starter.c b/src/mobile/starter.c index fe0b086..5b1711a 100755 --- a/src/mobile/starter.c +++ b/src/mobile/starter.c @@ -250,18 +250,21 @@ static void _init(struct appdata *ad) int ret = sigemptyset(&act.sa_mask); if (ret < 0) { - strerror_r(errno, err_buf, sizeof(err_buf)); - _E("Failed to sigemptyset[%d / %s]", errno, err_buf); + if (strerror_r(errno, err_buf, sizeof(err_buf)) == 0) { + _E("Failed to sigemptyset[%d / %s]", errno, err_buf); + } } ret = sigaddset(&act.sa_mask, SIGTERM); if (ret < 0) { - strerror_r(errno, err_buf, sizeof(err_buf)); - _E("Failed to sigaddset[%d / %s]", errno, err_buf); + if (strerror_r(errno, err_buf, sizeof(err_buf)) == 0) { + _E("Failed to sigaddset[%d / %s]", errno, err_buf); + } } ret = sigaction(SIGTERM, &act, NULL); if (ret < 0) { - strerror_r(errno, err_buf, sizeof(err_buf)); - _E("Failed to sigaction[%d / %s]", errno, err_buf); + if (strerror_r(errno, err_buf, sizeof(err_buf)) == 0) { + _E("Failed to sigaction[%d / %s]", errno, err_buf); + } } _set_i18n(PACKAGE, LOCALEDIR); diff --git a/src/wearable/hw_key.c b/src/wearable/hw_key.c index ede5a68..c5448c6 100644 --- a/src/wearable/hw_key.c +++ b/src/wearable/hw_key.c @@ -439,7 +439,6 @@ const char *key_name[KEY_NAME_MAX] = { "XF86Game", "XF86VoiceWakeUp_LPSD", "XF86VoiceWakeUp", - "KEY_NAME_MAX", }; static struct { diff --git a/src/wearable/starter.c b/src/wearable/starter.c index b69c8ac..8fa9362 100755 --- a/src/wearable/starter.c +++ b/src/wearable/starter.c @@ -131,18 +131,21 @@ static void _init(void) int ret = sigemptyset(&act.sa_mask); if (ret < 0) { - strerror_r(errno, err_buf, sizeof(err_buf)); - _E("Failed to sigemptyset[%d / %s]", errno, err_buf); + if (strerror_r(errno, err_buf, sizeof(err_buf)) == 0) { + _E("Failed to sigemptyset[%d / %s]", errno, err_buf); + } } ret = sigaddset(&act.sa_mask, SIGTERM); if (ret < 0) { - strerror_r(errno, err_buf, sizeof(err_buf)); - _E("Failed to sigaddset[%d / %s]", errno, err_buf); + if (strerror_r(errno, err_buf, sizeof(err_buf)) == 0) { + _E("Failed to sigaddset[%d / %s]", errno, err_buf); + } } ret = sigaction(SIGTERM, &act, NULL); if (ret < 0) { - strerror_r(errno, err_buf, sizeof(err_buf)); - _E("Failed to sigaction[%d / %s]", errno, err_buf); + if (strerror_r(errno, err_buf, sizeof(err_buf)) == 0) { + _E("Failed to sigaction[%d / %s]", errno, err_buf); + } } status_register();