From 9c46dc1eb313cca0a09ada0cd8a060175015c0b5 Mon Sep 17 00:00:00 2001 From: Suchang Woo Date: Tue, 13 Oct 2015 17:40:51 +0900 Subject: [PATCH] Remove compile warning messages * missing braces around initializer * unused variable Signed-off-by: Suchang Woo Change-Id: I368918fa2525afb0c0d23c969ca4506d328e566a --- src/plugins/default/tlm-auth-plugin-default.c | 5 +++-- src/utils/tlm-launcher.c | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/default/tlm-auth-plugin-default.c b/src/plugins/default/tlm-auth-plugin-default.c index 153b035..c1853be 100644 --- a/src/plugins/default/tlm-auth-plugin-default.c +++ b/src/plugins/default/tlm-auth-plugin-default.c @@ -169,11 +169,12 @@ tlm_auth_plugin_default_class_init (TlmAuthPluginDefaultClass *kls) static void tlm_auth_plugin_default_init (TlmAuthPluginDefault *self) { - struct sigaction sa = { 0 }; + struct sigaction sa = { + .sa_handler = _on_signal_cb, + }; g_weak_ref_init (&__self, self); - sa.sa_handler = _on_signal_cb; if (sigaction(SIGUSR1, &sa, NULL) != 0) { WARN ("assert(sigaction()) : %s", strerror(errno)); } diff --git a/src/utils/tlm-launcher.c b/src/utils/tlm-launcher.c index dd9bf12..a27295f 100644 --- a/src/utils/tlm-launcher.c +++ b/src/utils/tlm-launcher.c @@ -139,7 +139,6 @@ static void _tlm_launcher_process (TlmLauncher *l) { char str[1024]; gchar **argv = NULL; - gint wait = 0; pid_t child_pid = 0; if (!l || !l->fp) return; -- 2.7.4