From da9d4b670211f787e23f7d1dcd8a6186a443b78e Mon Sep 17 00:00:00 2001 From: 6r7 <79900913+6r7@users.noreply.github.com> Date: Tue, 6 Jan 2026 21:35:59 +0100 Subject: [PATCH 1/4] Hacky fix for GCC15+ compilation `src/active.c:759:9: error: too many arguments to function 'set_limits_from_pp_table'; expected 0, have 1` A gcc update probably "broke" it (stopped ignoring the error), or changed the behaviour of `()` --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile b/makefile index add7c3e..3754fa0 100644 --- a/makefile +++ b/makefile @@ -12,7 +12,7 @@ WARN=-Wall PTHREAD=-pthread -CCFLAGS=$(DEBUG) $(OPT) $(WARN) $(PTHREAD) -pipe +CCFLAGS=$(DEBUG) $(OPT) $(WARN) $(PTHREAD) -pipe -std=gnu17 GTKLIB=`pkg-config --cflags --libs gtk+-3.0` GIOLIB=`pkg-config --cflags --libs glib-2.0` From 6a6b323ecfdd02087c60f11f9a896c69902a31fb Mon Sep 17 00:00:00 2001 From: 6r7 <79900913+6r7@users.noreply.github.com> Date: Tue, 6 Jan 2026 21:51:06 +0100 Subject: [PATCH 2/4] Fix compilation with gcc 15+ `\`\` src/active.c:759:9: error: too many arguments to function 'set_limits_from_pp_table'; expected 0, have 1 `\`\` This seems to have been a copy paste mistake since the function does not use `app_wdgts` --- commit.txt | 5 +++++ src/active.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 commit.txt diff --git a/commit.txt b/commit.txt new file mode 100644 index 0000000..f1bafea --- /dev/null +++ b/commit.txt @@ -0,0 +1,5 @@ +Hacky fix for GCC15+ compilation + + +`src/active.c:759:9: error: too many arguments to function 'set_limits_from_pp_table'; expected 0, have 1` +A gcc update probably "broke" it (stopped ignoring the error), or changed the behaviour of `()` \ No newline at end of file diff --git a/src/active.c b/src/active.c index 198c8ae..0e6f5eb 100644 --- a/src/active.c +++ b/src/active.c @@ -755,7 +755,7 @@ void on_btn_active_clicked(GtkButton *button, app_widgets *app_wdgts) { if (set_limits_from_file(defsettingspath) == 1) { // default settings exist but are outdated or corrupt, get data from pp table printf("No valid default settings, using data from pp_table\n"); - if (set_limits_from_pp_table(app_wdgts) != 0) { + if (set_limits_from_pp_table() != 0) { printf("Error getting default limits from pp table\n"); readerror = 1; gtk_text_buffer_set_text(GTK_TEXT_BUFFER(g_text_revealer), "Error getting limits from pp table", -1); From a79df8a06d4bf05dd903a01fabc65f19df1283e7 Mon Sep 17 00:00:00 2001 From: 6r7 <79900913+6r7@users.noreply.github.com> Date: Tue, 6 Jan 2026 21:56:21 +0100 Subject: [PATCH 3/4] Update commit.txt --- commit.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/commit.txt b/commit.txt index f1bafea..0d05015 100644 --- a/commit.txt +++ b/commit.txt @@ -1,5 +1,9 @@ -Hacky fix for GCC15+ compilation +Fix compilation with gcc 15+ -`src/active.c:759:9: error: too many arguments to function 'set_limits_from_pp_table'; expected 0, have 1` -A gcc update probably "broke" it (stopped ignoring the error), or changed the behaviour of `()` \ No newline at end of file +`\`\` +src/active.c:759:9: error: too many arguments to function 'set_limits_from_pp_table'; expected 0, have 1 +`\`\` + + +This seems to have been a copy paste mistake since the function does not use `app_wdgts` From ce5017889f0df05d8373a357229c03859a2fac58 Mon Sep 17 00:00:00 2001 From: 6r7 <79900913+6r7@users.noreply.github.com> Date: Tue, 6 Jan 2026 22:04:07 +0100 Subject: [PATCH 4/4] Update makefile --- makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 3754fa0..c3e1527 100644 --- a/makefile +++ b/makefile @@ -12,7 +12,7 @@ WARN=-Wall PTHREAD=-pthread -CCFLAGS=$(DEBUG) $(OPT) $(WARN) $(PTHREAD) -pipe -std=gnu17 +CCFLAGS=$(DEBUG) $(OPT) $(WARN) $(PTHREAD) -pipe GTKLIB=`pkg-config --cflags --libs gtk+-3.0` GIOLIB=`pkg-config --cflags --libs glib-2.0` @@ -71,4 +71,4 @@ uninstall: rm -f /usr/bin/powerupp_startup_script_card*.sh rm -f $(DESTDIR)$(PREFIX)/share/pixmaps/powerupp.png rm -f $(DESTDIR)$(PREFIX)/share/applications/powerupp.desktop - rm -f /etc/udev/rules.d/80-powerupp*.rules \ No newline at end of file + rm -f /etc/udev/rules.d/80-powerupp*.rules