diff --git a/commit.txt b/commit.txt new file mode 100644 index 0000000..0d05015 --- /dev/null +++ b/commit.txt @@ -0,0 +1,9 @@ +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` diff --git a/makefile b/makefile index add7c3e..c3e1527 100644 --- a/makefile +++ b/makefile @@ -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 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);