From 362a3c8beb8c50fdda32d4318b924c4cd23abc8f Mon Sep 17 00:00:00 2001 From: pierre Date: Thu, 3 Nov 2011 10:27:58 +0000 Subject: [PATCH] Enable -Sew by default, set ALLOW_WARNINGS to 1 to disable git-svn-id: trunk@19585 - --- compiler/Makefile | 3 +++ compiler/Makefile.fpc | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/compiler/Makefile b/compiler/Makefile index f6d447546b..5707d16f50 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -3290,6 +3290,9 @@ ifdef CMP override DIFF:=$(CMP) -i218 endif endif +ifndef ALLOW_WARNINGS +override LOCALOPT+=-Sew +endif override COMPILER+=$(LOCALOPT) PASDOC:=$(strip $(wildcard $(addsuffix /pasdoc.exe,$(SEARCHPATH)))) ifeq ($(PASDOC),) diff --git a/compiler/Makefile.fpc b/compiler/Makefile.fpc index b7e15e95e0..e93e8951e6 100644 --- a/compiler/Makefile.fpc +++ b/compiler/Makefile.fpc @@ -268,6 +268,12 @@ override DIFF:=$(CMP) -i218 endif endif +# Use -Sew option by default +# Allow disabling by setting ALLOW_WARINGS=1 +ifndef ALLOW_WARNINGS +override LOCALOPT+=-Sew +endif + # Add Local options override COMPILER+=$(LOCALOPT)