Skip to content
This repository
Browse code

Compile with warning 33, and remove unused opens.

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12497 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
  • Loading branch information...
commit 7f655f4354f848b293cf108a6a1cdfac3f51f736 1 parent 13730bf
frisch authored

Showing 33 changed files with 8 additions and 38 deletions. Show diff stats Hide diff stats

  1. +1 1  Makefile
  2. +0 2  bytecomp/bytelink.ml
  3. +0 1  bytecomp/translclass.ml
  4. +0 1  bytecomp/translmod.ml
  5. +0 3  bytecomp/typeopt.ml
  6. +0 1  driver/compile.ml
  7. +1 1  lex/Makefile
  8. +0 1  lex/main.ml
  9. +0 1  lex/output.ml
  10. +0 1  lex/outputbis.ml
  11. +1 1  otherlibs/Makefile.shared
  12. +1 1  otherlibs/dynlink/Makefile
  13. +0 1  otherlibs/labltk/compiler/lexer.mll
  14. +0 1  otherlibs/labltk/compiler/maincompile.ml
  15. +0 1  otherlibs/labltk/compiler/tables.ml
  16. +0 1  otherlibs/labltk/support/fileevent.ml
  17. +0 1  otherlibs/labltk/support/protocol.ml
  18. +0 2  otherlibs/labltk/support/rawwidget.ml
  19. +0 1  otherlibs/labltk/support/textvariable.ml
  20. +0 1  otherlibs/labltk/support/timer.ml
  21. +1 1  otherlibs/systhreads/Makefile
  22. +1 1  otherlibs/systhreads/Makefile.nt
  23. +1 1  otherlibs/threads/Makefile
  24. +0 2  parsing/parse.ml
  25. +1 1  stdlib/Makefile.shared
  26. +0 1  toplevel/expunge.ml
  27. +0 1  toplevel/toploop.ml
  28. +0 1  typing/datarepr.ml
  29. +0 1  typing/includeclass.mli
  30. +0 1  typing/includecore.ml
  31. +0 1  typing/typeclass.ml
  32. +0 1  typing/typedecl.ml
  33. +0 1  typing/types.ml
2  Makefile
@@ -19,7 +19,7 @@ include stdlib/StdlibModules
19 19
20 20 CAMLC=boot/ocamlrun boot/ocamlc -nostdlib -I boot
21 21 CAMLOPT=boot/ocamlrun ./ocamlopt -nostdlib -I stdlib -I otherlibs/dynlink
22   -COMPFLAGS=-strict-sequence -warn-error A $(INCLUDES)
  22 +COMPFLAGS=-strict-sequence -w +33 -warn-error A $(INCLUDES)
23 23 LINKFLAGS=
24 24
25 25 CAMLYACC=boot/ocamlyacc
2  bytecomp/bytelink.ml
@@ -14,10 +14,8 @@
1  bytecomp/translclass.ml
@@ -12,7 +12,6 @@
12 12
13 13 (* $Id$ *)
14 14
15   -open Misc
16 15 open Asttypes
17 16 open Types
18 17 open Typedtree
1  bytecomp/translmod.ml
@@ -21,7 +21,6 @@ open Longident
21 21 open Path
22 22 open Types
23 23 open Typedtree
24   -open Primitive
25 24 open Lambda
26 25 open Translobj
27 26 open Translcore
3  bytecomp/typeopt.ml
@@ -14,9 +14,6 @@
14 14
15 15 (* Auxiliaries for type-based optimizations, e.g. array kinds *)
16 16
17   -open Misc
18   -open Asttypes
19   -open Primitive
20 17 open Path
21 18 open Types
22 19 open Typedtree
1  driver/compile.ml
@@ -17,7 +17,6 @@
17 17 open Misc
18 18 open Config
19 19 open Format
20   -open Typedtree
21 20
22 21 (* Initialize the search path.
23 22 The current directory is always searched first,
2  lex/Makefile
@@ -15,7 +15,7 @@
15 15 # The lexer generator
16 16 CAMLC=../boot/ocamlrun ../boot/ocamlc -strict-sequence -nostdlib -I ../boot
17 17 CAMLOPT=../boot/ocamlrun ../ocamlopt -nostdlib -I ../stdlib
18   -COMPFLAGS=-warn-error A
  18 +COMPFLAGS=-w +33 -warn-error A
19 19 CAMLYACC=../boot/ocamlyacc
20 20 YACCFLAGS=-v
21 21 CAMLLEX=../boot/ocamlrun ../boot/ocamllex
1  lex/main.ml
@@ -15,7 +15,6 @@
15 15 (* The lexer generator. Command-line parsing. *)
16 16
17 17 open Syntax
18   -open Lexgen
19 18
20 19 let ml_automata = ref false
21 20 let source_name = ref None
1  lex/output.ml
@@ -15,7 +15,6 @@
15 15 (* Output the DFA tables and its entry points *)
16 16
17 17 open Printf
18   -open Syntax
19 18 open Lexgen
20 19 open Compact
21 20 open Common
1  lex/outputbis.ml
@@ -15,7 +15,6 @@
15 15 (* Output the DFA tables and its entry points *)
16 16
17 17 open Printf
18   -open Syntax
19 18 open Lexgen
20 19 open Common
21 20
2  otherlibs/Makefile.shared
@@ -21,7 +21,7 @@ include $(ROOTDIR)/config/Makefile
21 21 # Compilation options
22 22 CC=$(BYTECC)
23 23 CAMLRUN=$(ROOTDIR)/boot/ocamlrun
24   -COMPFLAGS=-warn-error A -g $(EXTRACAMLFLAGS)
  24 +COMPFLAGS=-w +33 -warn-error A -g $(EXTRACAMLFLAGS)
25 25 MKLIB=$(CAMLRUN) $(ROOTDIR)/tools/ocamlmklib
26 26
27 27 # Variables to be defined by individual libraries:
2  otherlibs/dynlink/Makefile
@@ -20,7 +20,7 @@ include ../../config/Makefile
1  otherlibs/labltk/compiler/lexer.mll
@@ -20,7 +20,6 @@
20 20 open StdLabels
21 21 open Lexing
22 22 open Parser
23   -open Support
24 23
25 24 exception Lexical_error of string
26 25 let current_line = ref 1
1  otherlibs/labltk/compiler/maincompile.ml
@@ -17,7 +17,6 @@
17 17 (* $Id$ *)
18 18
19 19 open StdLabels
20   -open Support
21 20 open Tables
22 21 open Printer
23 22 open Compile
1  otherlibs/labltk/compiler/tables.ml
@@ -17,7 +17,6 @@
17 17 (* $Id$ *)
18 18
19 19 open StdLabels
20   -open Support
21 20
22 21 (* Internal compiler errors *)
23 22
1  otherlibs/labltk/support/fileevent.ml
@@ -17,7 +17,6 @@
17 17 (* $Id$ *)
18 18
19 19 open Unix
20   -open Support
21 20 open Protocol
22 21
23 22 external add_file_input : file_descr -> cbid -> unit
1  otherlibs/labltk/support/protocol.ml
@@ -16,7 +16,6 @@
16 16
17 17 (* $Id$ *)
18 18
19   -open Support
20 19 open Widget
21 20
22 21 type callback_buffer = string list
2  otherlibs/labltk/support/rawwidget.ml
@@ -16,8 +16,6 @@
16 16
17 17 (* $Id$ *)
18 18
19   -open Support
20   -
21 19 (*
22 20 * Widgets
23 21 *)
1  otherlibs/labltk/support/textvariable.ml
@@ -16,7 +16,6 @@
16 16
17 17 (* $Id$ *)
18 18
19   -open Support
20 19 open Protocol
21 20
22 21 external internal_tracevar : string -> cbid -> unit
1  otherlibs/labltk/support/timer.ml
@@ -17,7 +17,6 @@
17 17 (* $Id$ *)
18 18
19 19 (* Timers *)
20   -open Support
21 20 open Protocol
22 21
23 22 type tkTimer = int
2  otherlibs/systhreads/Makefile
@@ -18,7 +18,7 @@ include ../../config/Makefile
18 18 CAMLC=../../ocamlcomp.sh -I ../unix
19 19 CAMLOPT=../../ocamlcompopt.sh -I ../unix
20 20 MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib
21   -COMPFLAGS=-warn-error A -g
  21 +COMPFLAGS=-w +33 -warn-error A -g
22 22
23 23 BYTECODE_C_OBJS=st_stubs_b.o
24 24 NATIVECODE_C_OBJS=st_stubs_n.o
2  otherlibs/systhreads/Makefile.nt
@@ -18,7 +18,7 @@ include ../../config/Makefile
18 18 # Compilation options
19 19 CAMLC=../../boot/ocamlrun ../../ocamlc -I ../../stdlib -I ../win32unix
20 20 CAMLOPT=../../boot/ocamlrun ../../ocamlopt -I ../../stdlib -I ../win32unix
21   -COMPFLAGS=-warn-error A -g
  21 +COMPFLAGS=-w +33 -warn-error A -g
22 22 MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib
23 23 CFLAGS=-I../../byterun $(EXTRACFLAGS)
24 24
2  otherlibs/threads/Makefile
@@ -19,7 +19,7 @@ CC=$(BYTECC)
19 19 CFLAGS=-I../../byterun -O $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS) -g
20 20 CAMLC=../../ocamlcomp.sh -I ../unix
21 21 MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib
22   -COMPFLAGS=-warn-error A
  22 +COMPFLAGS=-w +33 -warn-error A
23 23
24 24 C_OBJS=scheduler.o
25 25
2  parsing/parse.ml
@@ -14,8 +14,6 @@
14 14
15 15 (* Entry points in the parser *)
16 16
17   -open Location
18   -
19 17 (* Skip tokens to the end of the phrase *)
20 18
21 19 let rec skip_phrase lexbuf =
2  stdlib/Makefile.shared
@@ -17,7 +17,7 @@ include ../config/Makefile
17 17 RUNTIME=../boot/ocamlrun
18 18 COMPILER=../ocamlc
19 19 CAMLC=$(RUNTIME) $(COMPILER)
20   -COMPFLAGS=-strict-sequence -g -warn-error A -nostdlib
  20 +COMPFLAGS=-strict-sequence -w +33 -g -warn-error A -nostdlib
21 21 OPTCOMPILER=../ocamlopt
22 22 CAMLOPT=$(RUNTIME) $(OPTCOMPILER)
23 23 OPTCOMPFLAGS=-warn-error A -nostdlib -g
1  toplevel/expunge.ml
@@ -15,7 +15,6 @@
15 15 (* "Expunge" a toplevel by removing compiler modules from the global List.map.
16 16 Usage: expunge <source file> <dest file> <names of modules to keep> *)
17 17
18   -open Sys
19 18 open Misc
20 19
21 20 module StringSet =
1  toplevel/toploop.ml
@@ -15,7 +15,6 @@
15 15 (* The interactive toplevel loop *)
16 16
17 17 open Path
18   -open Lexing
19 18 open Format
20 19 open Config
21 20 open Misc
1  typing/datarepr.ml
@@ -15,7 +15,6 @@
15 15 (* Compute constructor and label descriptions from type declarations,
16 16 determining their representation. *)
17 17
18   -open Misc
19 18 open Asttypes
20 19 open Types
21 20 open Btype
1  typing/includeclass.mli
@@ -15,7 +15,6 @@
15 15 (* Inclusion checks for the class language *)
16 16
17 17 open Types
18   -open Typedtree
19 18 open Ctype
20 19 open Format
21 20
1  typing/includecore.ml
@@ -14,7 +14,6 @@
14 14
15 15 (* Inclusion checks for the core language *)
16 16
17   -open Misc
18 17 open Asttypes
19 18 open Path
20 19 open Types
1  typing/typeclass.ml
@@ -12,7 +12,6 @@
12 12
13 13 (* $Id$ *)
14 14
15   -open Misc
16 15 open Parsetree
17 16 open Asttypes
18 17 open Path
1  typing/typedecl.ml
@@ -19,7 +19,6 @@ open Asttypes
19 19 open Parsetree
20 20 open Primitive
21 21 open Types
22   -open Typedtree
23 22 open Typetexp
24 23
25 24 type error =
1  typing/types.ml
@@ -14,7 +14,6 @@
14 14
15 15 (* Representation of types and declarations *)
16 16
17   -open Misc
18 17 open Asttypes
19 18
20 19 (* Type expressions for the core language *)

0 comments on commit 7f655f4

Please sign in to comment.
Something went wrong with that request. Please try again.