From 69d85b8c41f26765b87be2eec4a381634df0a9d9 Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Tue, 10 Dec 2024 22:38:13 +1100 Subject: [PATCH] tables_destroy: call ca_close_ca without argument This matches function call and fixes build with gcc-15 tables.c: In function 'tables_destroy': tables.c:390:13: error: too many arguments to function 'ca[i].op->ca_close_ca' 390 | ca[i].op->ca_close_ca(&ca[i]); | ^~ --- src/tables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tables.c b/src/tables.c index ff0b1f7858..aa3ee60660 100644 --- a/src/tables.c +++ b/src/tables.c @@ -387,7 +387,7 @@ int tables_destroy() { int i; for (i = 0; i < nca; i++) { if (ca[i].enabled && ca[i].op->ca_close_ca) - ca[i].op->ca_close_ca(&ca[i]); + ca[i].op->ca_close_ca(); } return 0; }