From 8b0d5a0d291c66f05869c15f92539bd1d7082d3a Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Thu, 31 Mar 2016 10:56:42 +0200 Subject: Compatibility with newer ocaml versions. Bug 18313. --- Makefile.extr | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile.extr') diff --git a/Makefile.extr b/Makefile.extr index 503c6a6a..fbc119de 100644 --- a/Makefile.extr +++ b/Makefile.extr @@ -38,9 +38,13 @@ INCLUDES=$(patsubst %,-I %, $(DIRS)) # warning 3 = deprecated feature. Turned off for OCaml 4.02 (bytes vs strings) # warning 20 = unused function argument. There are some in extracted code -WARNINGS=-w +a-4-9-27-29 -strict-sequence -safe-string -warn-error +a +WARNINGS=-w +a-3-4-9-27-29 -strict-sequence -safe-string -warn-error +a #Deprication returns with ocaml 4.03 extraction/%.cmx: WARNINGS +=-w -20-27-32..34-39-41-44..45 extraction/%.cmo: WARNINGS +=-w -20-27-32..34-39-41-44..45 +cparser/pre_parser.cmx: WARNINGS += -w -41 +cparser/pre_parser.cmo: WARNINGS += -w -41 +backend/CMparser.cmx: WARNINGS += -w -41 +backend/CMparser.cmo: WARNINGS += -w -41 COMPFLAGS+=-g $(INCLUDES) $(MENHIR_INCLUDES) $(WARNINGS) -- cgit