git: 45a326d4b384 - main - x11-toolkits/gtk20: fix build with clang 16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 18 Apr 2023 15:12:32 UTC
The branch main has been updated by adridg: URL: https://cgit.FreeBSD.org/ports/commit/?id=45a326d4b3846116734cce9c60ce189e9c2e81e0 commit 45a326d4b3846116734cce9c60ce189e9c2e81e0 Author: Adriaan de Groot <adridg@FreeBSD.org> AuthorDate: 2023-04-18 14:30:05 +0000 Commit: Adriaan de Groot <adridg@FreeBSD.org> CommitDate: 2023-04-18 15:12:06 +0000 x11-toolkits/gtk20: fix build with clang 16 Repair dodgy cast. Reported by: Eric Camachat PR: 270449 --- x11-toolkits/gtk20/files/patch-gtk_gtkscale.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/x11-toolkits/gtk20/files/patch-gtk_gtkscale.c b/x11-toolkits/gtk20/files/patch-gtk_gtkscale.c new file mode 100644 index 000000000000..a6bb935f5444 --- /dev/null +++ b/x11-toolkits/gtk20/files/patch-gtk_gtkscale.c @@ -0,0 +1,11 @@ +--- gtk/gtkscale.c.orig 2020-12-18 05:29:40 UTC ++++ gtk/gtkscale.c +@@ -1471,7 +1471,7 @@ gtk_scale_add_mark (GtkScale *scale, + mark->position = position; + + priv->marks = g_slist_insert_sorted_with_data (priv->marks, mark, +- (GCompareFunc) compare_marks, ++ (GCompareDataFunc) compare_marks, + GINT_TO_POINTER ( + gtk_range_get_inverted (GTK_RANGE (scale)) + ));