From 3810538fa77fe20aecad56dc1caf2f6b3be3401a Mon Sep 17 00:00:00 2001 From: jusung son Date: Fri, 15 Jun 2018 10:51:51 +0900 Subject: [PATCH] Fix build warnings Change-Id: I9b64a06f82d3cb2f92a7ab73c4e1ad83637b2109 Signed-off-by: jusung son --- daemon/daemon.c | 3 +-- vconf-compat/vconf.c | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) mode change 100644 => 100755 daemon/daemon.c diff --git a/daemon/daemon.c b/daemon/daemon.c old mode 100644 new mode 100755 index cd6ebb2..05b908d --- a/daemon/daemon.c +++ b/daemon/daemon.c @@ -51,7 +51,7 @@ static bool _log_on = true; static FILE *_fp; -static enum log_type { +enum log_type { LOG_SET, LOG_NOTI, LOG_DELAYED_NOTI, @@ -70,7 +70,6 @@ static char *log_map[] = { "UNREG_NOTI" }; - struct bxt_noti { char *layer_key; GList *clients; /* struct bxt_client */ diff --git a/vconf-compat/vconf.c b/vconf-compat/vconf.c index 6c38100..c56760c 100644 --- a/vconf-compat/vconf.c +++ b/vconf-compat/vconf.c @@ -595,10 +595,8 @@ EXPORT int vconf_notify_key_changed(const char *key, vconf_callback_fn cb, g_hash_table_remove(noti_tbl, key); } /* increase reference count */ - if (r == 0) { - int temp; - temp = _open(); - } + if (r == 0) + r = _open(); } else { r = add_noti(noti, cb, user_data); } -- 2.7.4