diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2014-12-23 12:55:23 +0100 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2014-12-24 22:33:24 +0100 |
commit | 11b282d58121ec63316ec11da0af10023b593549 (patch) | |
tree | 881b6699a829deea4edfb183f17435a1de0644c2 /config.tests/unix/glib | |
parent | dec81ad2dac347ae380f405eb2a58d0a4d0abad4 (diff) |
Glib config test: fix compiler warnings
Remove warnings: "assigned but not used" and "uninitialized usage".
Change-Id: I247e1de020e78c35787b8e1e30421174ac232fd5
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'config.tests/unix/glib')
-rw-r--r-- | config.tests/unix/glib/glib.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; |