From 749b0fdda01dc7837302bbcc0f577e8d397cc0e6 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 31 Aug 2015 14:36:12 +0100 Subject: [PATCH] Add a missing cast in g_object_set. When NULL appears in variadic argument lists, it should be cast to the pointer type that the function will be expecting, because otherwise it might end up as a type not even the same size as a pointer. --- unix/gtkdlg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/gtkdlg.c b/unix/gtkdlg.c index 4f2016fb..6c608ab7 100644 --- a/unix/gtkdlg.c +++ b/unix/gtkdlg.c @@ -2435,7 +2435,7 @@ GtkWidget *layout_ctrls(struct dlgparam *dp, struct Shortcuts *scs, g_object_set(G_OBJECT(cellrend), "ellipsize", PANGO_ELLIPSIZE_END, "ellipsize-set", TRUE, - NULL); + (const char *)NULL); } column = gtk_tree_view_column_new_with_attributes ("heading", cellrend, "text", i+1, (char *)NULL);