summaryrefslogtreecommitdiff
path: root/lex
diff options
context:
space:
mode:
authorAlain Frisch <alain@frisch.fr>2012-05-29 11:10:03 +0000
committerAlain Frisch <alain@frisch.fr>2012-05-29 11:10:03 +0000
commit05c973e6ed4be5e2fb28ef97b9659c9677ccbfd1 (patch)
tree7c08717819bcaa37a09a26bcb71cb453fbf5d2eb /lex
parent87f6cd4779008d5ac6f4ac2365a540da0344de14 (diff)
downloadocaml-05c973e6ed4be5e2fb28ef97b9659c9677ccbfd1.tar.gz
Compile with warning 33, and remove unused opens.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12497 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'lex')
-rw-r--r--lex/Makefile2
-rw-r--r--lex/main.ml1
-rw-r--r--lex/output.ml1
-rw-r--r--lex/outputbis.ml1
4 files changed, 1 insertions, 4 deletions
diff --git a/lex/Makefile b/lex/Makefile
index d73939a3c1..e12eaa83d9 100644
--- a/lex/Makefile
+++ b/lex/Makefile
@@ -15,7 +15,7 @@
# The lexer generator
CAMLC=../boot/ocamlrun ../boot/ocamlc -strict-sequence -nostdlib -I ../boot
CAMLOPT=../boot/ocamlrun ../ocamlopt -nostdlib -I ../stdlib
-COMPFLAGS=-warn-error A
+COMPFLAGS=-w +33 -warn-error A
CAMLYACC=../boot/ocamlyacc
YACCFLAGS=-v
CAMLLEX=../boot/ocamlrun ../boot/ocamllex
diff --git a/lex/main.ml b/lex/main.ml
index 28f1e55e62..73cfbd47bb 100644
--- a/lex/main.ml
+++ b/lex/main.ml
@@ -15,7 +15,6 @@
(* The lexer generator. Command-line parsing. *)
open Syntax
-open Lexgen
let ml_automata = ref false
let source_name = ref None
diff --git a/lex/output.ml b/lex/output.ml
index 377c00a2dd..d05e04bebc 100644
--- a/lex/output.ml
+++ b/lex/output.ml
@@ -15,7 +15,6 @@
(* Output the DFA tables and its entry points *)
open Printf
-open Syntax
open Lexgen
open Compact
open Common
diff --git a/lex/outputbis.ml b/lex/outputbis.ml
index 7eac354444..db2326d31c 100644
--- a/lex/outputbis.ml
+++ b/lex/outputbis.ml
@@ -15,7 +15,6 @@
(* Output the DFA tables and its entry points *)
open Printf
-open Syntax
open Lexgen
open Common