diff options
-rw-r--r-- | camlp4/camlp4/Makefile | 2 | ||||
-rw-r--r-- | camlp4/compile/Makefile | 2 | ||||
-rw-r--r-- | camlp4/etc/Makefile | 2 | ||||
-rw-r--r-- | camlp4/lib/Makefile | 2 | ||||
-rw-r--r-- | camlp4/meta/Makefile | 2 | ||||
-rw-r--r-- | camlp4/ocaml_src/lib/Makefile | 2 | ||||
-rw-r--r-- | camlp4/ocaml_src/meta/Makefile | 2 | ||||
-rw-r--r-- | camlp4/ocaml_src/odyl/Makefile | 2 | ||||
-rw-r--r-- | camlp4/ocpp/Makefile | 2 | ||||
-rw-r--r-- | camlp4/odyl/Makefile | 2 | ||||
-rw-r--r-- | camlp4/top/Makefile | 2 | ||||
-rw-r--r-- | debugger/Makefile | 2 | ||||
-rw-r--r-- | lex/Makefile | 2 | ||||
-rw-r--r-- | otherlibs/bigarray/Makefile | 1 | ||||
-rw-r--r-- | otherlibs/db/Makefile | 1 | ||||
-rw-r--r-- | otherlibs/dbm/Makefile | 1 | ||||
-rw-r--r-- | otherlibs/dynlink/Makefile | 2 | ||||
-rw-r--r-- | otherlibs/graph/Makefile | 5 | ||||
-rw-r--r-- | otherlibs/macosunix/Makefile.Mac | 2 | ||||
-rw-r--r-- | otherlibs/num/Makefile | 1 | ||||
-rw-r--r-- | otherlibs/str/Makefile | 1 | ||||
-rw-r--r-- | otherlibs/systhreads/Makefile | 1 | ||||
-rw-r--r-- | otherlibs/threads/Makefile | 1 | ||||
-rw-r--r-- | otherlibs/unix/Makefile | 1 | ||||
-rw-r--r-- | otherlibs/win32graph/Makefile.nt | 1 | ||||
-rw-r--r-- | otherlibs/win32unix/Makefile.nt | 1 | ||||
-rw-r--r-- | stdlib/Makefile | 4 | ||||
-rw-r--r-- | tools/Makefile | 2 |
28 files changed, 31 insertions, 20 deletions
diff --git a/camlp4/camlp4/Makefile b/camlp4/camlp4/Makefile index 3217fee763..e2fa885775 100644 --- a/camlp4/camlp4/Makefile +++ b/camlp4/camlp4/Makefile @@ -5,7 +5,7 @@ include ../config/Makefile SHELL=/bin/sh INCLUDES=-I ../odyl -I ../boot -I $(OTOP)/utils -I $(OTOP)/parsing -I $(OTOP)/otherlibs/dynlink -OCAMLCFLAGS=$(INCLUDES) +OCAMLCFLAGS=-warn-error A $(INCLUDES) LINKFLAGS=$(INCLUDES) INTERFACES=-I $(OLIBDIR) Arg Array Buffer Callback Char Digest Filename Format Gc Genlex Hashtbl Lazy Lexing List Map Marshal Obj Oo Parsing Pervasives Printexc Printf Queue Random Set Sort Stack Stream String Sys Weak -I ../boot Extfun Fstream Gramext Grammar Plexer Stdpp Token -I $(OTOP)/utils Config Warnings -I $(OTOP)/parsing Asttypes Location Longident Parsetree -I . Ast2pt MLast Pcaml Quotation Spretty CAMLP4_INTF=$(OTOP)/utils/config.cmi $(OTOP)/utils/warnings.cmi $(OTOP)/parsing/asttypes.cmi $(OTOP)/parsing/location.cmi $(OTOP)/parsing/longident.cmi $(OTOP)/parsing/parsetree.cmi ast2pt.cmi mLast.cmi pcaml.cmi spretty.cmi quotation.cmi diff --git a/camlp4/compile/Makefile b/camlp4/compile/Makefile index 4c2ba55123..d5dc26d04b 100644 --- a/camlp4/compile/Makefile +++ b/camlp4/compile/Makefile @@ -3,7 +3,7 @@ include ../config/Makefile INCLUDES=-I ../camlp4 -I ../boot -OCAMLCFLAGS=$(INCLUDES) +OCAMLCFLAGS=-warn-error A $(INCLUDES) SRC=../etc/pa_o.ml ../etc/pa_op.ml D=o COMP_OPT=-strict_parsing diff --git a/camlp4/etc/Makefile b/camlp4/etc/Makefile index c5e75ed1f5..cf45858592 100644 --- a/camlp4/etc/Makefile +++ b/camlp4/etc/Makefile @@ -3,7 +3,7 @@ include ../config/Makefile INCLUDES=-I ../camlp4 -I ../boot -I $(OTOP)/lex -OCAMLCFLAGS=$(INCLUDES) +OCAMLCFLAGS=-warn-error A $(INCLUDES) OBJS=q_phony.cmo pa_o.cmo pa_op.cmo pa_oop.cmo pa_ru.cmo pa_format.cmo pa_olabl.cmo pa_sml.cmo pa_lisp.cmo pa_extfun.cmo pa_fstream.cmo pa_ocamllex.cma pr_r.cmo pr_rp.cmo pr_o.cmo pr_op.cmo pr_extend.cmo pr_extfun.cmo pr_null.cmo pr_depend.cmo INTF=pa_o.cmi CAMLP4OM=pa_o.cmo pa_op.cmo ../meta/pr_dump.cmo diff --git a/camlp4/lib/Makefile b/camlp4/lib/Makefile index 5243e3dc4d..46591ddce0 100644 --- a/camlp4/lib/Makefile +++ b/camlp4/lib/Makefile @@ -3,7 +3,7 @@ include ../config/Makefile INCLUDES= -OCAMLCFLAGS=$(INCLUDES) +OCAMLCFLAGS=-warn-error A $(INCLUDES) OBJS=stdpp.cmo token.cmo plexer.cmo gramext.cmo grammar.cmo extfun.cmo fstream.cmo SHELL=/bin/sh TARGET=gramlib.cma diff --git a/camlp4/meta/Makefile b/camlp4/meta/Makefile index d26438d91a..9c706eadd6 100644 --- a/camlp4/meta/Makefile +++ b/camlp4/meta/Makefile @@ -3,7 +3,7 @@ include ../config/Makefile INCLUDES=-I ../camlp4 -I ../boot -I $(OTOP)/utils -OCAMLCFLAGS=$(INCLUDES) +OCAMLCFLAGS=-warn-error A $(INCLUDES) OBJS=q_MLast.cmo pa_r.cmo pa_rp.cmo pa_extend.cmo pa_extend_m.cmo pa_ifdef.cmo pr_dump.cmo CAMLP4RM=pa_r.cmo pa_rp.cmo pr_dump.cmo CAMLP4RMX=pa_r.cmx pa_rp.cmx pr_dump.cmx diff --git a/camlp4/ocaml_src/lib/Makefile b/camlp4/ocaml_src/lib/Makefile index 254b6161f2..dc7aca28ce 100644 --- a/camlp4/ocaml_src/lib/Makefile +++ b/camlp4/ocaml_src/lib/Makefile @@ -3,7 +3,7 @@ include ../../config/Makefile INCLUDES= -OCAMLCFLAGS=$(INCLUDES) +OCAMLCFLAGS=-warn-error A $(INCLUDES) OBJS=stdpp.cmo token.cmo plexer.cmo gramext.cmo grammar.cmo extfun.cmo fstream.cmo SHELL=/bin/sh TARGET=gramlib.cma diff --git a/camlp4/ocaml_src/meta/Makefile b/camlp4/ocaml_src/meta/Makefile index a4decb9d79..6a4f4a7de5 100644 --- a/camlp4/ocaml_src/meta/Makefile +++ b/camlp4/ocaml_src/meta/Makefile @@ -3,7 +3,7 @@ include ../../config/Makefile INCLUDES=-I ../camlp4 -I ../../boot -I $(OTOP)/utils -OCAMLCFLAGS=$(INCLUDES) +OCAMLCFLAGS=-warn-error A $(INCLUDES) OBJS=q_MLast.cmo pa_r.cmo pa_rp.cmo pa_extend.cmo pa_extend_m.cmo pa_ifdef.cmo pr_dump.cmo CAMLP4RM=pa_r.cmo pa_rp.cmo pr_dump.cmo CAMLP4RMX=pa_r.cmx pa_rp.cmx pr_dump.cmx diff --git a/camlp4/ocaml_src/odyl/Makefile b/camlp4/ocaml_src/odyl/Makefile index 5d3be43cf0..999aa86665 100644 --- a/camlp4/ocaml_src/odyl/Makefile +++ b/camlp4/ocaml_src/odyl/Makefile @@ -5,7 +5,7 @@ include ../../config/Makefile SHELL=/bin/sh INCLUDES=-I $(OTOP)/otherlibs/dynlink -OCAMLCFLAGS=$(INCLUDES) +OCAMLCFLAGS=-warn-error A $(INCLUDES) LINKFLAGS=$(INCLUDES) OBJS=odyl_config.cmo odyl_main.cmo diff --git a/camlp4/ocpp/Makefile b/camlp4/ocpp/Makefile index 79a4d8807d..809bc94b97 100644 --- a/camlp4/ocpp/Makefile +++ b/camlp4/ocpp/Makefile @@ -5,7 +5,7 @@ include ../config/Makefile SHELL=/bin/sh INCLUDES=-I ../camlp4 -I ../boot -I ../odyl -I $(OTOP)/otherlibs/dynlink -OCAMLCFLAGS=$(INCLUDES) +OCAMLCFLAGS=-warn-error A $(INCLUDES) LINKFLAGS=$(INCLUDES) OBJS=crc.cmo ocpp.cmo INTERFACES=-I $(OLIBDIR) Arg Array Callback Char Digest Filename Format Gc Genlex Hashtbl Lexing List Map Obj Oo Parsing Pervasives Printexc Printf Queue Random Set Sort Stack Stream String Sys Weak -I ../boot Gramext Grammar Plexer Stdpp Token -I ../camlp4 MLast Quotation diff --git a/camlp4/odyl/Makefile b/camlp4/odyl/Makefile index 5f3f99ad43..ed79971406 100644 --- a/camlp4/odyl/Makefile +++ b/camlp4/odyl/Makefile @@ -5,7 +5,7 @@ include ../config/Makefile SHELL=/bin/sh INCLUDES=-I $(OTOP)/otherlibs/dynlink -OCAMLCFLAGS=$(INCLUDES) +OCAMLCFLAGS=-warn-error A $(INCLUDES) LINKFLAGS=$(INCLUDES) OBJS=odyl_config.cmo odyl_main.cmo diff --git a/camlp4/top/Makefile b/camlp4/top/Makefile index d2af76ac1c..bbca92b2ef 100644 --- a/camlp4/top/Makefile +++ b/camlp4/top/Makefile @@ -3,7 +3,7 @@ include ../config/Makefile INCLUDES=-I ../camlp4 -I ../boot -I $(OTOP)/utils -I $(OTOP)/parsing -I $(OTOP)/typing -I $(OTOP)/toplevel -OCAMLCFLAGS=$(INCLUDES) +OCAMLCFLAGS=-warn-error A $(INCLUDES) CAMLP4_OBJS=$(OTOP)/utils/config.cmo ../boot/stdpp.cmo ../boot/token.cmo ../boot/plexer.cmo ../boot/gramext.cmo ../boot/grammar.cmo ../boot/extfun.cmo ../boot/fstream.cmo ../camlp4/quotation.cmo ../camlp4/ast2pt.cmo ../camlp4/reloc.cmo ../camlp4/spretty.cmo ../camlp4/pcaml.cmo TOP=camlp4_top.cmo diff --git a/debugger/Makefile b/debugger/Makefile index e1f6df0daa..562d758f90 100644 --- a/debugger/Makefile +++ b/debugger/Makefile @@ -15,7 +15,7 @@ include ../config/Makefile CAMLC=../boot/ocamlrun ../ocamlc -I ../boot -COMPFLAGS=$(INCLUDES) +COMPFLAGS=-warn-error A $(INCLUDES) LINKFLAGS=-linkall -I ../otherlibs/unix CAMLYACC=../boot/ocamlyacc YACCFLAGS= diff --git a/lex/Makefile b/lex/Makefile index fd60d3c43a..3f7b8fb42a 100644 --- a/lex/Makefile +++ b/lex/Makefile @@ -16,7 +16,7 @@ CAMLC=../boot/ocamlrun ../boot/ocamlc -I ../boot CAMLOPT=../boot/ocamlrun ../ocamlopt -I ../stdlib -COMPFLAGS= +COMPFLAGS=-warn-error A LINKFLAGS= CAMLYACC=../boot/ocamlyacc YACCFLAGS= diff --git a/otherlibs/bigarray/Makefile b/otherlibs/bigarray/Makefile index 71d69e47c9..49eaf2f141 100644 --- a/otherlibs/bigarray/Makefile +++ b/otherlibs/bigarray/Makefile @@ -20,6 +20,7 @@ CFLAGS=-I../../byterun -g -O $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS) CAMLC=../../boot/ocamlrun ../../ocamlc -I ../../stdlib -I ../unix CAMLOPT=../../boot/ocamlrun ../../ocamlopt -I ../../stdlib -I ../unix MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib +COMPFLAGS=-warn-error A C_OBJS=bigarray_stubs.o mmap_unix.o diff --git a/otherlibs/db/Makefile b/otherlibs/db/Makefile index ee58488a11..5714190e80 100644 --- a/otherlibs/db/Makefile +++ b/otherlibs/db/Makefile @@ -22,6 +22,7 @@ CC=$(BYTECC) -g CAMLC=../../boot/ocamlrun ../../ocamlc -I ../../stdlib CAMLOPT=../../boot/ocamlrun ../../ocamlopt -I ../../stdlib CFLAGS=-I../../byterun -O $(BYTECCCOMPOPTS) +COMPFLAGS=-warn-error A COBJS=dbstubs.o all: libmldb.a db.cmi db.cma diff --git a/otherlibs/dbm/Makefile b/otherlibs/dbm/Makefile index df8d013757..0ca86f6665 100644 --- a/otherlibs/dbm/Makefile +++ b/otherlibs/dbm/Makefile @@ -22,6 +22,7 @@ CC=$(BYTECC) -g CAMLC=../../boot/ocamlrun ../../ocamlc -I ../../stdlib CAMLOPT=../../boot/ocamlrun ../../ocamlopt -I ../../stdlib MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib +COMPFLAGS=-warn-error A CFLAGS=$(DBM_INCLUDES) -I../../byterun -O $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS) COBJS=cldbm.o diff --git a/otherlibs/dynlink/Makefile b/otherlibs/dynlink/Makefile index 906b3d4b77..56d14ba63c 100644 --- a/otherlibs/dynlink/Makefile +++ b/otherlibs/dynlink/Makefile @@ -19,7 +19,7 @@ include ../../config/Makefile CAMLC=../../boot/ocamlrun ../../ocamlc INCLUDES=-I ../../utils -I ../../typing -I ../../bytecomp -COMPFLAGS=-I ../../stdlib $(INCLUDES) +COMPFLAGS=-warn-error A -I ../../stdlib $(INCLUDES) OBJS=dynlink.cmo COMPILEROBJS=misc.cmo config.cmo tbl.cmo clflags.cmo \ diff --git a/otherlibs/graph/Makefile b/otherlibs/graph/Makefile index f93ad969f4..79dc679cd2 100644 --- a/otherlibs/graph/Makefile +++ b/otherlibs/graph/Makefile @@ -22,6 +22,7 @@ CFLAGS=-I../../byterun $(X11_INCLUDES) -O $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS) CAMLC=../../boot/ocamlrun ../../ocamlc -I ../../stdlib CAMLOPT=../../boot/ocamlrun ../../ocamlopt -I ../../stdlib MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib +COMPFLAGS=-warn-error A OBJS=open.o draw.o fill.o color.o text.o \ image.o make_img.o dump_img.o point_col.o sound.o events.o \ @@ -61,9 +62,9 @@ installopt: .SUFFIXES: .ml .mli .cmo .cmi .cmx .mli.cmi: - $(CAMLC) -c $< + $(CAMLC) -c $(COMPFLAGS) $< .ml.cmo: - $(CAMLC) -c $< + $(CAMLC) -c $(COMPFLAGS) $< .ml.cmx: $(CAMLOPT) -c $(COMPFLAGS) $< diff --git a/otherlibs/macosunix/Makefile.Mac b/otherlibs/macosunix/Makefile.Mac index bf18bd7a2d..4eecaf1cbf 100644 --- a/otherlibs/macosunix/Makefile.Mac +++ b/otherlibs/macosunix/Makefile.Mac @@ -21,7 +21,7 @@ COptions = -i {includepath} -includes unix -w 30,35 {cdbgflag} -model far PPCC = mrc PPCCOptions = -i {includepath} -includes unix -w 30,35 {cdbgflag} -CAMLC = :::boot:ocamlrun :::boot:ocamlc -I :::stdlib: +CAMLC = :::boot:ocamlrun :::boot:ocamlc -I :::stdlib: -warn-error A # Files in this directory diff --git a/otherlibs/num/Makefile b/otherlibs/num/Makefile index 4639a171d9..ba765216c3 100644 --- a/otherlibs/num/Makefile +++ b/otherlibs/num/Makefile @@ -23,6 +23,7 @@ CFLAGS=-O -I./bignum/h -I../../byterun $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS) CAMLC=../../boot/ocamlrun ../../ocamlc -I ../../stdlib -w s CAMLOPT=../../boot/ocamlrun ../../ocamlopt -I ../../stdlib -w s MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib +COMPFLAGS=-warn-error A CAMLOBJS=int_misc.cmo string_misc.cmo nat.cmo big_int.cmo arith_flags.cmo \ ratio.cmo num.cmo arith_status.cmo diff --git a/otherlibs/str/Makefile b/otherlibs/str/Makefile index 0292ceb303..54fc2e66f9 100644 --- a/otherlibs/str/Makefile +++ b/otherlibs/str/Makefile @@ -22,6 +22,7 @@ CC=$(BYTECC) CFLAGS=-O -I$(REGEXLIB) -I../../byterun $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS) CAMLC=../../boot/ocamlrun ../../ocamlc -I ../../stdlib CAMLOPT=../../boot/ocamlrun ../../ocamlopt -I ../../stdlib +COMPFLAGS=-warn-error A REGEXLIB=regex-0.12 COBJS=strstubs.o $(REGEXLIB)/regex.o MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib diff --git a/otherlibs/systhreads/Makefile b/otherlibs/systhreads/Makefile index 314781d6f3..62c6a1fe18 100644 --- a/otherlibs/systhreads/Makefile +++ b/otherlibs/systhreads/Makefile @@ -18,6 +18,7 @@ include ../../config/Makefile CAMLC=../../boot/ocamlrun ../../ocamlc -I ../../stdlib -I ../unix CAMLOPT=../../boot/ocamlrun ../../ocamlopt -I ../../stdlib -I ../unix MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib +COMPFLAGS=-warn-error A BYTECODE_C_OBJS=posix_b.o NATIVECODE_C_OBJS=posix_n.o diff --git a/otherlibs/threads/Makefile b/otherlibs/threads/Makefile index 916d0d5ce3..93ba4a0f62 100644 --- a/otherlibs/threads/Makefile +++ b/otherlibs/threads/Makefile @@ -19,6 +19,7 @@ CC=$(BYTECC) CFLAGS=-I../../byterun -O $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS) -g CAMLC=../../boot/ocamlrun ../../ocamlc -I ../../stdlib -I ../unix MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib +COMPFLAGS=-warn-error A C_OBJS=scheduler.o diff --git a/otherlibs/unix/Makefile b/otherlibs/unix/Makefile index 317460e0ed..bea9c8026a 100644 --- a/otherlibs/unix/Makefile +++ b/otherlibs/unix/Makefile @@ -23,6 +23,7 @@ CFLAGS=-I../../byterun -O $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS) CAMLC=../../boot/ocamlrun ../../ocamlc -I ../../stdlib CAMLOPT=../../boot/ocamlrun ../../ocamlopt -I ../../stdlib MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib +COMPFLAGS=-warn-error A OBJS=accept.o access.o addrofstr.o alarm.o bind.o chdir.o chmod.o \ chown.o chroot.o close.o closedir.o connect.o cst2constr.o cstringv.o \ diff --git a/otherlibs/win32graph/Makefile.nt b/otherlibs/win32graph/Makefile.nt index ac3317de63..46fc80484a 100644 --- a/otherlibs/win32graph/Makefile.nt +++ b/otherlibs/win32graph/Makefile.nt @@ -20,6 +20,7 @@ CC=$(BYTECC) CFLAGS=-I..\..\byterun CAMLC=..\..\boot\ocamlrun ..\..\ocamlc -I ..\..\stdlib CAMLOPT=..\..\boot\ocamlrun ..\..\ocamlopt -I ..\..\stdlib +COMPFLAGS=-warn-error A COBJS=open.obj draw.obj dib.obj CAMLOBJS=graphics.cmo diff --git a/otherlibs/win32unix/Makefile.nt b/otherlibs/win32unix/Makefile.nt index ba1df64c7f..4d7daa6588 100644 --- a/otherlibs/win32unix/Makefile.nt +++ b/otherlibs/win32unix/Makefile.nt @@ -20,6 +20,7 @@ CC=$(BYTECC) CFLAGS=-I..\..\byterun -I..\unix CAMLC=..\..\boot\ocamlrun ..\..\ocamlc -I ..\..\stdlib CAMLOPT=..\..\boot\ocamlrun ..\..\ocamlopt -I ..\..\stdlib +COMPFLAGS=-warn-error A # Files in this directory WIN_OBJS = accept.obj bind.obj channels.obj close.obj \ diff --git a/stdlib/Makefile b/stdlib/Makefile index b15cf88983..e3b648c045 100644 --- a/stdlib/Makefile +++ b/stdlib/Makefile @@ -18,10 +18,10 @@ include ../config/Makefile RUNTIME=../boot/ocamlrun COMPILER=../ocamlc CAMLC=$(RUNTIME) $(COMPILER) -COMPFLAGS=-g +COMPFLAGS=-g -warn-error A OPTCOMPILER=../ocamlopt CAMLOPT=$(RUNTIME) $(OPTCOMPILER) -OPTCOMPFLAGS= +OPTCOMPFLAGS=-warn-error A CAMLDEP=../boot/ocamlrun ../tools/ocamldep BASIC=pervasives.cmo array.cmo list.cmo char.cmo string.cmo sys.cmo \ diff --git a/tools/Makefile b/tools/Makefile index cb261330d8..f07f327d75 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -15,7 +15,7 @@ include ../config/Makefile CAMLRUN=../boot/ocamlrun -CAMLC=$(CAMLRUN) ../boot/ocamlc -I ../boot +CAMLC=$(CAMLRUN) ../boot/ocamlc -I ../boot -warn-error A CAMLLEX=$(CAMLRUN) ../boot/ocamllex INCLUDES=-I ../utils -I ../parsing -I ../typing -I ../bytecomp -I ../asmcomp \ -I ../driver |