build: fix compilation warnings produced by recent clang
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 2 Jun 2015 03:06:38 +0000 (12:06 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 2 Jun 2015 03:15:36 +0000 (12:15 +0900)
Change-Id: Iea550aa011f411a20490e9df2de14e24535c58c8
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
tizen/src/emulator_options.c
tizen/src/skin/maruskin_client.c

index 9926061b56c9de5b6c51d606898eea87fea92676..fc839aaf9415987c11e9e3ae07f086d664fd6392 100644 (file)
@@ -217,9 +217,7 @@ bool load_conf(const char * const conf)
     FILE *file = NULL;
 
     assert(!!conf);
-    if (conf) {
-        filename = g_strdup(conf);
-    }
+    filename = g_strdup(conf);
 
     file = fopen(filename, "r");
     if (!file) {
index 4f47ea353d1590637ecfc9cfd542d97e92cda3e9..1f45473f6f42810b3c7a00f8df4cff374a8cb96a 100644 (file)
@@ -136,7 +136,7 @@ static void *run_skin_client(void *arg)
     }
 
     /* network */
-    gchar const* proxy_addr;
+    gchar const* proxy_addr = NULL;
     int proxy_addr_len = 0;
 
     const char *http_proxy = get_http_proxy_addr();
@@ -154,7 +154,8 @@ static void *run_skin_client(void *arg)
         }
         g_strfreev(proxy);
     }
-    gchar const* tap_enabled = g_strdup_printf("%s=%s", OPT_USE_TAP, is_netclient_tap_attached() ? "true" : "false");
+    gchar const* tap_enabled = g_strdup_printf("%s=%s", OPT_USE_TAP,
+            is_netclient_tap_attached() ? "true" : "false");
     int tap_opt_len = (int)strlen(tap_enabled);
 
 #ifdef CONFIG_WIN32