Skip to content

Commit 4ba1b9e

Browse files
committed
Handle the new warnings of OCaml 4.13
Warning 69 "mutable record field is never mutated": 3 occurrences in backend/IRC.ml removed the "mutable" qualifier on these fields Warning 70 "cannot find interface file" many .ml files have no .mli no strong motivation to add the .mli files turned off the warning in Makefile.extr
1 parent 7e8e3ef commit 4ba1b9e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Makefile.extr

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ INCLUDES=$(patsubst %,-I %, $(DIRS))
5151

5252
# Control of warnings:
5353

54-
WARNINGS=-w +a-4-9-27
54+
WARNINGS=-w +a-4-9-27-70
5555
extraction/%.cmx: WARNINGS +=-w -20-27-32..34-39-41-44..45-60-67
5656
extraction/%.cmo: WARNINGS +=-w -20-27-32..34-39-41-44..45-60-67
5757
cparser/pre_parser.cmx: WARNINGS += -w -41

backend/IRC.ml

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ type node =
3333
{ ident: int; (*r unique identifier *)
3434
typ: typ; (*r its type *)
3535
var: var; (*r the XTL variable it comes from *)
36-
mutable regclass: int; (*r identifier of register class *)
37-
mutable accesses: int; (*r number of defs and uses *)
36+
regclass: int; (*r identifier of register class *)
37+
accesses: int; (*r number of defs and uses *)
3838
mutable spillcost: float; (*r estimated cost of spilling *)
3939
mutable adjlist: node list; (*r all nodes it interferes with *)
4040
mutable degree: int; (*r number of adjacent nodes *)
@@ -206,7 +206,7 @@ type graph = {
206206
varTable: (var, node) Hashtbl.t;
207207
mutable nextIdent: int;
208208
(* The adjacency set *)
209-
mutable adjSet: unit IntPairs.t;
209+
adjSet: unit IntPairs.t;
210210
(* Low-degree, non-move-related nodes *)
211211
simplifyWorklist: DLinkNode.t;
212212
(* Low-degree, move-related nodes *)

0 commit comments

Comments
 (0)