From: Friedrich Beckmann Date: Sat, 29 Aug 2020 22:26:35 +0000 (+0200) Subject: switched off unused-paramter warning for lib-essential gui files X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fb80b7279687d4181e3786bb3acc1879cb8d16f;p=pspp switched off unused-paramter warning for lib-essential gui files I disabled the unused-parameter warning as for the other gui files. Same as before the introduction of the essential library. --- diff --git a/src/ui/gui/automake.mk b/src/ui/gui/automake.mk index 8d80ce781d..853444d9d0 100644 --- a/src/ui/gui/automake.mk +++ b/src/ui/gui/automake.mk @@ -354,6 +354,14 @@ src_ui_gui_libwidgets_essential_la_CFLAGS = \ $(GTKSOURCEVIEW_CFLAGS) \ $(AM_CFLAGS) +# The unused-parameter warning is not by default disabled +# in AM_CFLAGS because the core pspp code has this enabled. +# This is only disabled in the gui code where we have many +# callbacks from gtk3 which have fixed parameters +if cc_is_gcc +src_ui_gui_libwidgets_essential_la_CFLAGS += -Wno-unused-parameter +endif + nodist_src_ui_gui_psppire_SOURCES = \ src/ui/gui/psppire-marshal.c \ src/ui/gui/psppire-marshal.h \