configure: Enable GCC warnings to report use of C2x features.
[pspp] / Makefile.am
index 5967656765c580e84dfe9554036ad2a48f7596af..8b44e82efcd760cfbd17ac186e088339494b3d8e 100644 (file)
@@ -30,12 +30,7 @@ AM_CPPFLAGS = \
 
 AM_V_P ?= :
 
-AM_CFLAGS=
-
-if cc_is_gcc
-AM_CFLAGS+=-Wall -Wextra -Wwrite-strings -Wstrict-prototypes \
--Wpointer-arith -Wno-sign-compare -Wmissing-prototypes
-endif
+AM_CFLAGS=$(WARNING_FLAGS)
 
 pkgsysconfdir = $(sysconfdir)/$(PACKAGE)