From 4fc6e20e7a877a51fa08674335f9fea68b39741d Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 23 Jun 2013 03:23:04 -0700 Subject: [PATCH] Turn on -Werror during configure for missing flags. --- Makefile.am | 2 +- configure.ac | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index f1e6334..bc01ec0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -26,7 +26,7 @@ SUBDIRS = ACLOCAL_AMFLAGS = -I m4 # XXX: do I really need -fno-common? -AM_CPPFLAGS = -Werror -fno-common -I$(srcdir)/include -DYYDEBUG=1 +AM_CPPFLAGS = -fno-common -I$(srcdir)/include -DYYDEBUG=1 AM_CPPFLAGS += -include $(srcdir)/config.h -include $(srcdir)/unconfig.h AM_CXXFLAGS = $(CY_ARCH) diff --git a/configure.ac b/configure.ac index 90f2f5c..4929617 100644 --- a/configure.ac +++ b/configure.ac @@ -129,6 +129,8 @@ AC_DEFUN([CY_TEST_FLAG], [ AX_CFLAGS_WARN_ALL AX_CXXFLAGS_WARN_ALL +CY_TEST_FLAG([-Werror]) + dnl XXX: this is used to support GNU Objective-C struct objc_method CY_TEST_FLAG([-Wno-deprecated-declarations]) -- 2.49.0