Permalink
Browse files

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...
1 parent 13730bf commit 7f655f4354f848b293cf108a6a1cdfac3f51f736 frisch committed May 29, 2012
View
@@ -19,7 +19,7 @@ include stdlib/StdlibModules
CAMLC=boot/ocamlrun boot/ocamlc -nostdlib -I boot
CAMLOPT=boot/ocamlrun ./ocamlopt -nostdlib -I stdlib -I otherlibs/dynlink
-COMPFLAGS=-strict-sequence -warn-error A $(INCLUDES)
+COMPFLAGS=-strict-sequence -w +33 -warn-error A $(INCLUDES)
LINKFLAGS=
CAMLYACC=boot/ocamlyacc
View
@@ -14,10 +14,8 @@
(* Link a set of .cmo files and produce a bytecode executable. *)
-open Sys
open Misc
open Config
-open Instruct
open Cmo_format
type error =
View
@@ -12,7 +12,6 @@
(* $Id$ *)
-open Misc
open Asttypes
open Types
open Typedtree
View
@@ -21,7 +21,6 @@ open Longident
open Path
open Types
open Typedtree
-open Primitive
open Lambda
open Translobj
open Translcore
View
@@ -14,9 +14,6 @@
(* Auxiliaries for type-based optimizations, e.g. array kinds *)
-open Misc
-open Asttypes
-open Primitive
open Path
open Types
open Typedtree
View
@@ -17,7 +17,6 @@
open Misc
open Config
open Format
-open Typedtree
(* Initialize the search path.
The current directory is always searched first,
View
@@ -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
View
@@ -15,7 +15,6 @@
(* The lexer generator. Command-line parsing. *)
open Syntax
-open Lexgen
let ml_automata = ref false
let source_name = ref None
View
@@ -15,7 +15,6 @@
(* Output the DFA tables and its entry points *)
open Printf
-open Syntax
open Lexgen
open Compact
open Common
View
@@ -15,7 +15,6 @@
(* Output the DFA tables and its entry points *)
open Printf
-open Syntax
open Lexgen
open Common
@@ -21,7 +21,7 @@ include $(ROOTDIR)/config/Makefile
# Compilation options
CC=$(BYTECC)
CAMLRUN=$(ROOTDIR)/boot/ocamlrun
-COMPFLAGS=-warn-error A -g $(EXTRACAMLFLAGS)
+COMPFLAGS=-w +33 -warn-error A -g $(EXTRACAMLFLAGS)
MKLIB=$(CAMLRUN) $(ROOTDIR)/tools/ocamlmklib
# Variables to be defined by individual libraries:
@@ -20,7 +20,7 @@ include ../../config/Makefile
CAMLC=../../boot/ocamlrun ../../ocamlc
CAMLOPT=../../ocamlcompopt.sh
INCLUDES=-I ../../utils -I ../../typing -I ../../bytecomp -I ../../asmcomp
-COMPFLAGS=-warn-error A -I ../../stdlib $(INCLUDES)
+COMPFLAGS=-w +33 -warn-error A -I ../../stdlib $(INCLUDES)
OBJS=dynlinkaux.cmo dynlink.cmo
@@ -20,7 +20,6 @@
open StdLabels
open Lexing
open Parser
-open Support
exception Lexical_error of string
let current_line = ref 1
@@ -17,7 +17,6 @@
(* $Id$ *)
open StdLabels
-open Support
open Tables
open Printer
open Compile
@@ -17,7 +17,6 @@
(* $Id$ *)
open StdLabels
-open Support
(* Internal compiler errors *)
@@ -17,7 +17,6 @@
(* $Id$ *)
open Unix
-open Support
open Protocol
external add_file_input : file_descr -> cbid -> unit
@@ -16,7 +16,6 @@
(* $Id$ *)
-open Support
open Widget
type callback_buffer = string list
@@ -16,8 +16,6 @@
(* $Id$ *)
-open Support
-
(*
* Widgets
*)
@@ -16,7 +16,6 @@
(* $Id$ *)
-open Support
open Protocol
external internal_tracevar : string -> cbid -> unit
@@ -17,7 +17,6 @@
(* $Id$ *)
(* Timers *)
-open Support
open Protocol
type tkTimer = int
@@ -18,7 +18,7 @@ include ../../config/Makefile
CAMLC=../../ocamlcomp.sh -I ../unix
CAMLOPT=../../ocamlcompopt.sh -I ../unix
MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib
-COMPFLAGS=-warn-error A -g
+COMPFLAGS=-w +33 -warn-error A -g
BYTECODE_C_OBJS=st_stubs_b.o
NATIVECODE_C_OBJS=st_stubs_n.o
@@ -18,7 +18,7 @@ include ../../config/Makefile
# Compilation options
CAMLC=../../boot/ocamlrun ../../ocamlc -I ../../stdlib -I ../win32unix
CAMLOPT=../../boot/ocamlrun ../../ocamlopt -I ../../stdlib -I ../win32unix
-COMPFLAGS=-warn-error A -g
+COMPFLAGS=-w +33 -warn-error A -g
MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib
CFLAGS=-I../../byterun $(EXTRACFLAGS)
@@ -19,7 +19,7 @@ CC=$(BYTECC)
CFLAGS=-I../../byterun -O $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS) -g
CAMLC=../../ocamlcomp.sh -I ../unix
MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib
-COMPFLAGS=-warn-error A
+COMPFLAGS=-w +33 -warn-error A
C_OBJS=scheduler.o
View
@@ -14,8 +14,6 @@
(* Entry points in the parser *)
-open Location
-
(* Skip tokens to the end of the phrase *)
let rec skip_phrase lexbuf =
View
@@ -17,7 +17,7 @@ include ../config/Makefile
RUNTIME=../boot/ocamlrun
COMPILER=../ocamlc
CAMLC=$(RUNTIME) $(COMPILER)
-COMPFLAGS=-strict-sequence -g -warn-error A -nostdlib
+COMPFLAGS=-strict-sequence -w +33 -g -warn-error A -nostdlib
OPTCOMPILER=../ocamlopt
CAMLOPT=$(RUNTIME) $(OPTCOMPILER)
OPTCOMPFLAGS=-warn-error A -nostdlib -g
View
@@ -15,7 +15,6 @@
(* "Expunge" a toplevel by removing compiler modules from the global List.map.
Usage: expunge <source file> <dest file> <names of modules to keep> *)
-open Sys
open Misc
module StringSet =
View
@@ -15,7 +15,6 @@
(* The interactive toplevel loop *)
open Path
-open Lexing
open Format
open Config
open Misc
View
@@ -15,7 +15,6 @@
(* Compute constructor and label descriptions from type declarations,
determining their representation. *)
-open Misc
open Asttypes
open Types
open Btype
View
@@ -15,7 +15,6 @@
(* Inclusion checks for the class language *)
open Types
-open Typedtree
open Ctype
open Format
View
@@ -14,7 +14,6 @@
(* Inclusion checks for the core language *)
-open Misc
open Asttypes
open Path
open Types
View
@@ -12,7 +12,6 @@
(* $Id$ *)
-open Misc
open Parsetree
open Asttypes
open Path
View
@@ -19,7 +19,6 @@ open Asttypes
open Parsetree
open Primitive
open Types
-open Typedtree
open Typetexp
type error =
View
@@ -14,7 +14,6 @@
(* Representation of types and declarations *)
-open Misc
open Asttypes
(* Type expressions for the core language *)

0 comments on commit 7f655f4

Please sign in to comment.