From e21a4c1559e9004fc767b67aa9661c13263abdbe Mon Sep 17 00:00:00 2001 From: Bastian Germann Date: Fri, 7 Mar 2025 21:53:31 +0100 Subject: [PATCH] Drop superfluous arguments to ui_update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The code errors with gcc 15 with: error: too many arguments to function ‘ui_update’; expected 0, have 1 --- lua_nodes.c | 4 ++-- ui/gtk/gui_cardview.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lua_nodes.c b/lua_nodes.c index 062772e..0146b74 100644 --- a/lua_nodes.c +++ b/lua_nodes.c @@ -275,7 +275,7 @@ static int subr_nodes_append(lua_State* L) lua_push_node_ref(L,&node); - ui_update(1); + ui_update(); return 1; } @@ -424,7 +424,7 @@ static int subr_nodes_remove(lua_State* L) else lua_pushboolean(L,1); - ui_update(1); + ui_update(); return 1; } diff --git a/ui/gtk/gui_cardview.c b/ui/gtk/gui_cardview.c index 82b5c0f..b66a568 100644 --- a/ui/gtk/gui_cardview.c +++ b/ui/gtk/gui_cardview.c @@ -79,7 +79,7 @@ static void menu_run_script_cb(GtkWidget *widget, ui_set_title(script->script_name); luax_run_script(script->script_file); gtk_tree_view_expand_all (GTK_TREE_VIEW(CARDVIEW)); - ui_update(0); + ui_update(); } static void menu_cardview_clear_cb(GtkWidget *w, gpointer user_data)