From 7922e0d8cf83d6be01af1777b33089732344b672 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Sun, 6 Sep 2020 00:33:33 +0200 Subject: Fix deprecations and build warnings Fixes AyatanaIndicators/ayatana-indicator-printers#3. --- test/mock-cups-notifier.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test') diff --git a/test/mock-cups-notifier.c b/test/mock-cups-notifier.c index 10d5fe5..7903f91 100644 --- a/test/mock-cups-notifier.c +++ b/test/mock-cups-notifier.c @@ -6,12 +6,10 @@ int main (int argc, char **argv) { GMainLoop *loop; - CupsNotifier *notifier; + CupsNotifier *notifier = NULL; GDBusConnection *con; GError *error = NULL; - g_type_init (); - loop = g_main_loop_new (NULL, FALSE); con = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error); -- cgit v1.2.3