Commit d06e5fd1 authored by Timothy Redaelli's avatar Timothy Redaelli Committed by Youness Alaoui

Remove some "set but not used" variables since GCC 4.6 emit a warning about that

parent cb8c0886
...@@ -2812,14 +2812,13 @@ GSource* agent_timeout_add_with_context (NiceAgent *agent, guint interval, ...@@ -2812,14 +2812,13 @@ GSource* agent_timeout_add_with_context (NiceAgent *agent, guint interval,
GSourceFunc function, gpointer data) GSourceFunc function, gpointer data)
{ {
GSource *source; GSource *source;
guint id;
g_return_val_if_fail (function != NULL, 0); g_return_val_if_fail (function != NULL, 0);
source = g_timeout_source_new (interval); source = g_timeout_source_new (interval);
g_source_set_callback (source, function, data, NULL); g_source_set_callback (source, function, data, NULL);
id = g_source_attach (source, agent->main_context); g_source_attach (source, agent->main_context);
return source; return source;
} }
......
...@@ -179,7 +179,6 @@ int main (void) ...@@ -179,7 +179,6 @@ int main (void)
{ {
NiceAgent *lagent, *ragent; /* agent's L and R */ NiceAgent *lagent, *ragent; /* agent's L and R */
NiceAddress baseaddr; NiceAddress baseaddr;
guint timer_id;
const char *stun_server = NULL, *stun_server_port = NULL; const char *stun_server = NULL, *stun_server_port = NULL;
GMainContext *lmainctx, *rmainctx; GMainContext *lmainctx, *rmainctx;
GMainLoop *lmainloop, *rmainloop; GMainLoop *lmainloop, *rmainloop;
...@@ -218,7 +217,7 @@ int main (void) ...@@ -218,7 +217,7 @@ int main (void)
g_object_set (G_OBJECT (ragent), "upnp", FALSE, NULL); g_object_set (G_OBJECT (ragent), "upnp", FALSE, NULL);
/* step: add a timer to catch state changes triggered by signals */ /* step: add a timer to catch state changes triggered by signals */
timer_id = g_timeout_add (30000, timer_cb, NULL); g_timeout_add (30000, timer_cb, NULL);
/* step: specify which local interface to use */ /* step: specify which local interface to use */
if (!nice_address_set_from_string (&baseaddr, "127.0.0.1")) if (!nice_address_set_from_string (&baseaddr, "127.0.0.1"))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment