From cc038383fea2384527f24545e423cdea09875e7b Mon Sep 17 00:00:00 2001 From: Kim Woelders Date: Sun, 12 Feb 2023 14:36:33 +0100 Subject: [PATCH] autofoo: Move warning flags setup to configure.ac --- configure.ac | 6 ++++++ src/Makefile.am | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 2dc566d..3a46fbd 100644 --- a/configure.ac +++ b/configure.ac @@ -24,6 +24,12 @@ PKG_PROG_PKG_CONFIG PKG_CHECK_MODULES(FUSE, fuse) +CFLAGS_WARN="$CFLAGS_WARN -Wall -Wextra -Werror -Wno-unused-parameter" +CFLAGS_WARN="$CFLAGS_WARN -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes" +CFLAGS_WARN="$CFLAGS_WARN -Waggregate-return -Wpointer-arith -Wshadow -Wwrite-strings" +CFLAGS_WARN="$CFLAGS_WARN -Wcast-align -Wcast-qual" +AC_SUBST(CFLAGS_WARN) + AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([ Makefile diff --git a/src/Makefile.am b/src/Makefile.am index 046150c..d38a059 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,9 +1,4 @@ -CFLAGS_WARN = -Wall -Wextra -Werror -Wno-unused-parameter -CFLAGS_WARN += -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -CFLAGS_WARN += -Waggregate-return -Wpointer-arith -Wshadow -Wwrite-strings -CFLAGS_WARN += -Wcast-align -Wcast-qual - bin_PROGRAMS = ttynvt ttynvt_SOURCES = \