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>
This commit is contained in:
parent
dec81ad2da
commit
11b282d581
@ -39,10 +39,11 @@ int main(int, char **)
|
|||||||
{
|
{
|
||||||
GMainContext *context;
|
GMainContext *context;
|
||||||
GSource *source;
|
GSource *source;
|
||||||
GPollFD *pollfd;
|
GPollFD *pollfd = NULL;
|
||||||
if (!g_thread_supported())
|
if (!g_thread_supported())
|
||||||
g_thread_init(NULL);
|
g_thread_init(NULL);
|
||||||
context = g_main_context_default();
|
context = g_main_context_default();
|
||||||
|
(void)context;
|
||||||
source = g_source_new(0, 0);
|
source = g_source_new(0, 0);
|
||||||
g_source_add_poll(source, pollfd);
|
g_source_add_poll(source, pollfd);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user