Skip to content

Commit 66eb0f0

Browse files
committed
Kill warnings + unify flags for ci/dev dune environments
This commit makes the warning flags now explicit for the dev/ci environments and use the same set of warning flags for both of them. This will allow us to catch more warnings in the CI. For the release environment, we now use the default set of flags. As a side effect, this commit fixes the pretty printing of local variables (the actual code was not using the printing environment anymore to get the display name)
1 parent 61c5881 commit 66eb0f0

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/dune

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
(env
2-
(dev (flags :standard -rectypes -warn-error -a+31 -w +28+33-9-23-32-58-67-69))
3-
(ci (flags :standard -rectypes -warn-error +a -w +28+33-9-23-32-58-67-69))
4-
(release (flags :standard -rectypes -warn-error -a -w +28+33-9-23-32-58-67-69)
2+
(dev (flags :standard -rectypes -w @1..3@5..28@31..39@43@46..47@49..57@61..62-40-9-23-32-67-69 -warn-error -a+31))
3+
(ci (flags :standard -rectypes -w @1..3@5..28@31..39@43@46..47@49..57@61..62-40-9-23-32-67-69 -warn-error +a))
4+
(release (flags :standard -rectypes)
55
(ocamlopt_flags -O3 -unbox-closures)))
66

7+
78
(include_subdirs unqualified)
89

910
(generate_sites_module
@@ -30,4 +31,4 @@
3031
(menhir
3132
(modules ecParser)
3233
(explain true)
33-
(flags --table))
34+
(flags --table --unused-token COMMENT))

src/ecPrinting.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ let pp_modtype1 (ppe : PPEnv.t) fmt mty =
620620

621621
(* -------------------------------------------------------------------- *)
622622
let pp_local (ppe : PPEnv.t) fmt x =
623-
Format.fprintf fmt "%s" (EcIdent.name x)
623+
Format.fprintf fmt "%s" (PPEnv.local_symb ppe x)
624624

625625
(* -------------------------------------------------------------------- *)
626626
let pp_local ?fv (ppe : PPEnv.t) fmt x =

0 commit comments

Comments
 (0)