Tizen 2.1 base
[platform/upstream/glib2.0.git] / gio / tests / httpd.c
index c3aaf33..a2325d0 100644 (file)
@@ -72,6 +72,7 @@ handler (GThreadedSocketService *service,
       *tmp = 0;
       version = tmp + 1;
     }
+  version = version; /* To avoid -Wunused-but-set-variable */
 
   query = strchr (escaped, '?');
   if (query != NULL)
@@ -146,7 +147,6 @@ main (int argc, char *argv[])
   GError *error = NULL;
 
   g_type_init ();
-  g_thread_init (NULL);
 
   context = g_option_context_new ("<http root dir> - Simple HTTP server");
   g_option_context_add_main_entries (context, cmd_entries, NULL);