From 1fb80b7279687d4181e3786bb3acc1879cb8d16f Mon Sep 17 00:00:00 2001 From: Friedrich Beckmann Date: Sun, 30 Aug 2020 00:26:35 +0200 Subject: [PATCH] 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. --- src/ui/gui/automake.mk | 8 ++++++++ 1 file changed, 8 insertions(+) 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 \ -- 2.30.2