Markus Mottl avatar Markus Mottl committed ddc8ac1

Added stricter compilation flags

Comments (0)

Files changed (5)

examples/cloc/Makefile

 OCAMLMAKEFILE = ../../OCamlMakefile
 
-SOURCES = cloc.ml
-INCDIRS = ../../lib
-LIBDIRS = ../../lib
-LIBS    = pcre
-RESULT  = cloc
+SOURCES    = cloc.ml
+INCDIRS    = ../../lib
+LIBDIRS    = ../../lib
+LIBS       = pcre
+OCAMLFLAGS = -w Aer -strict-sequence
+RESULT     = cloc
 
 -include $(OCAMLMAKEFILE)

examples/count_hash/Makefile

 OCAMLMAKEFILE = ../../OCamlMakefile
 
-SOURCES = count_hash.ml
-INCDIRS = ../../lib
-LIBDIRS = ../../lib
-LIBS    = pcre
-RESULT  = count_hash
+SOURCES    = count_hash.ml
+INCDIRS    = ../../lib
+LIBDIRS    = ../../lib
+LIBS       = pcre
+OCAMLFLAGS = -w Aer -strict-sequence
+RESULT     = count_hash
 
 -include $(OCAMLMAKEFILE)

examples/pcregrep/Makefile

 OCAMLMAKEFILE = ../../OCamlMakefile
 
-SOURCES = pcregrep.ml
-INCDIRS = ../../lib
-LIBDIRS = ../../lib
-LIBS    = pcre
-RESULT  = pcregrep
+SOURCES    = pcregrep.ml
+INCDIRS    = ../../lib
+LIBDIRS    = ../../lib
+LIBS       = pcre
+OCAMLFLAGS = -w Aer -strict-sequence
+RESULT     = pcregrep
 
 -include $(OCAMLMAKEFILE)

examples/subst/Makefile

 OCAMLMAKEFILE = ../../OCamlMakefile
 
-SOURCES = subst.ml
-INCDIRS = ../../lib
-LIBDIRS = ../../lib
-LIBS    = pcre
-RESULT  = subst
+SOURCES    = subst.ml
+INCDIRS    = ../../lib
+LIBDIRS    = ../../lib
+LIBS       = pcre
+OCAMLFLAGS = -w Aer -strict-sequence
+RESULT     = subst
 
 -include $(OCAMLMAKEFILE)
 SOURCES := pcre.mli pcre.ml pcre_stubs.c
 CFLAGS := -O2 $(shell pcre-config --cflags)
 PCRE_FLAGS := $(shell pcre-config --libs)
+OCAMLFLAGS := -w Aer -strict-sequence
 OCAMLLDFLAGS := -cclib "$(PCRE_FLAGS)"
 OCAMLMKLIB_FLAGS := $(PCRE_FLAGS)
 RESULT := pcre
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.