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)