switched off unused-paramter warning for lib-essential gui files
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sat, 29 Aug 2020 22:26:35 +0000 (00:26 +0200)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sat, 29 Aug 2020 22:26:35 +0000 (00:26 +0200)
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

index 8d80ce781d5e100c2373ad54933530da12f875bc..853444d9d06425e6c31a948dea73d01ae7db8756 100644 (file)
@@ -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 \