From dd63df78f4f3db0bef493dcdba99b1f2c989a0d8 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 20 Jan 2023 17:55:48 +0200 Subject: [PATCH 30/30] gtk: Fix testmatic build See osdn #46551 Signed-off-by: Marko Lindqvist --- client/gui-gtk-3.22/helpdlg.c | 3 +-- client/gui-gtk-4.0/helpdlg.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/client/gui-gtk-3.22/helpdlg.c b/client/gui-gtk-3.22/helpdlg.c index a755db403f..4387a3e8a2 100644 --- a/client/gui-gtk-3.22/helpdlg.c +++ b/client/gui-gtk-3.22/helpdlg.c @@ -346,8 +346,7 @@ static void help_hyperlink_callback(GtkWidget *w) { const char *s; struct help_page_selection *select; - /* TODO: Make sure there's always valid select->type */ - enum help_page_type type BAD_HEURISTIC_INIT(HELP_LAST); + enum help_page_type type = HELP_LAST; s = gtk_label_get_text(GTK_LABEL(w)); select = (struct help_page_selection *)(g_object_get_data(G_OBJECT(w), "page_type")); diff --git a/client/gui-gtk-4.0/helpdlg.c b/client/gui-gtk-4.0/helpdlg.c index 4b805bc08a..e54bfa37cd 100644 --- a/client/gui-gtk-4.0/helpdlg.c +++ b/client/gui-gtk-4.0/helpdlg.c @@ -345,8 +345,7 @@ static void help_hyperlink_callback(GtkWidget *w) { const char *s; struct help_page_selection *select; - /* TODO: Make sure there's always valid select->type */ - enum help_page_type type BAD_HEURISTIC_INIT(HELP_LAST); + enum help_page_type type = HELP_LAST; s = gtk_label_get_text(GTK_LABEL(w)); select = (struct help_page_selection *)(g_object_get_data(G_OBJECT(w), "page_type")); -- 2.39.0