Browse Source

Enable -Sew by default, set ALLOW_WARNINGS to 1 to disable

git-svn-id: trunk@19585 -
pierre 13 years ago
parent
commit
362a3c8beb
2 changed files with 9 additions and 0 deletions
  1. 3 0
      compiler/Makefile
  2. 6 0
      compiler/Makefile.fpc

+ 3 - 0
compiler/Makefile

@@ -3290,6 +3290,9 @@ ifdef CMP
 override DIFF:=$(CMP) -i218
 override DIFF:=$(CMP) -i218
 endif
 endif
 endif
 endif
+ifndef ALLOW_WARNINGS
+override LOCALOPT+=-Sew
+endif
 override COMPILER+=$(LOCALOPT)
 override COMPILER+=$(LOCALOPT)
 PASDOC:=$(strip $(wildcard $(addsuffix /pasdoc.exe,$(SEARCHPATH))))
 PASDOC:=$(strip $(wildcard $(addsuffix /pasdoc.exe,$(SEARCHPATH))))
 ifeq ($(PASDOC),)
 ifeq ($(PASDOC),)

+ 6 - 0
compiler/Makefile.fpc

@@ -268,6 +268,12 @@ override DIFF:=$(CMP) -i218
 endif
 endif
 endif
 endif
 
 
+# Use -Sew option by default
+# Allow disabling by setting ALLOW_WARINGS=1
+ifndef ALLOW_WARNINGS
+override LOCALOPT+=-Sew
+endif
+
 # Add Local options
 # Add Local options
 override COMPILER+=$(LOCALOPT)
 override COMPILER+=$(LOCALOPT)