From ae5293ecdb902c6ff3f4870e6ae94c69024b3288 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 28 Oct 2021 10:53:22 +0200 Subject: Fix build warnings about missing field initializer --- gsearchtool/src/gsearchtool-callbacks.c | 2 +- gsearchtool/src/gsearchtool.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'gsearchtool/src') diff --git a/gsearchtool/src/gsearchtool-callbacks.c b/gsearchtool/src/gsearchtool-callbacks.c index b43429bb..caca5dff 100644 --- a/gsearchtool/src/gsearchtool-callbacks.c +++ b/gsearchtool/src/gsearchtool-callbacks.c @@ -221,7 +221,7 @@ click_expander_cb (GObject * object, GDK_HINT_MIN_SIZE); } else { - GdkGeometry default_geometry = {MINIMUM_WINDOW_WIDTH, MINIMUM_WINDOW_HEIGHT}; + GdkGeometry default_geometry = { MINIMUM_WINDOW_WIDTH, MINIMUM_WINDOW_HEIGHT, 0, 0, 0, 0, 0, 0, 0.0, 0.0, 0 }; gtk_widget_hide (gsearch->available_options_vbox); gtk_window_set_geometry_hints (GTK_WINDOW (gsearch->window), diff --git a/gsearchtool/src/gsearchtool.c b/gsearchtool/src/gsearchtool.c index 3d6a3669..ae637dc5 100644 --- a/gsearchtool/src/gsearchtool.c +++ b/gsearchtool/src/gsearchtool.c @@ -175,7 +175,7 @@ static GOptionEntry GSearchGOptionEntries[] = { { "hidden", 0, 0, G_OPTION_ARG_NONE, &GSearchGOptionArguments.hidden, NULL, NULL }, { "follow", 0, 0, G_OPTION_ARG_NONE, &GSearchGOptionArguments.follow, NULL, NULL }, { "mounts", 0, 0, G_OPTION_ARG_NONE, &GSearchGOptionArguments.mounts, NULL, NULL }, - { NULL } + { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL } }; static gchar * find_command_default_name_argument; @@ -3006,7 +3006,8 @@ gsearch_window_get_type (void) NULL, sizeof (GSearchWindow), 0, - (GInstanceInitFunc)(void (*)(void)) gsearch_app_create + (GInstanceInitFunc)(void (*)(void)) gsearch_app_create, + NULL }; object_type = g_type_register_static (GTK_TYPE_WINDOW, "GSearchWindow", &object_info, 0); } -- cgit v1.2.1