From 11b282d58121ec63316ec11da0af10023b593549 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Tue, 23 Dec 2014 12:55:23 +0100 Subject: Glib config test: fix compiler warnings Remove warnings: "assigned but not used" and "uninitialized usage". Change-Id: I247e1de020e78c35787b8e1e30421174ac232fd5 Reviewed-by: Thiago Macieira --- config.tests/unix/glib/glib.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config.tests') diff --git a/config.tests/unix/glib/glib.cpp b/config.tests/unix/glib/glib.cpp index 692e3173fa..f8abc824c6 100644 --- a/config.tests/unix/glib/glib.cpp +++ b/config.tests/unix/glib/glib.cpp @@ -39,10 +39,11 @@ int main(int, char **) { GMainContext *context; GSource *source; - GPollFD *pollfd; + GPollFD *pollfd = NULL; if (!g_thread_supported()) g_thread_init(NULL); context = g_main_context_default(); + (void)context; source = g_source_new(0, 0); g_source_add_poll(source, pollfd); return 0; -- cgit v1.2.3