OCaml Forge

Detail: [#1063] Generated setup.ml has unused variables

Bugs: Browse | Download .csv | Monitor

[#1063] Generated setup.ml has unused variables

Date:
2011-11-24 09:49
Priority:
3
State:
Open
Submitted by:
Dmitry Astapov (dastapov)
Assigned to:
Sylvain Le Gall (gildor-admin)
Product:
OASIS
Due in version:
0.2.1
Resolution:
None
Severity:
None
Version:
0.2.0
Component:
None
Operating System:
All
 
URL:
Summary:
Generated setup.ml has unused variables

Detailed description
Hi!

I just tried to install several packages in the environment where "ocaml" by default has non-empty value of -warn-error and found out that every "setup.ml" generated by OASIS 0.2.0 fails to load with "unused variable context":

% ocaml setup.ml -configure
File "/home/ante/Documents/dev/sharedprojects/ocaml/oasis/src/oasis/PropList.ml", line 235, characters 18-26:
Warning 27: unused variable context.
File "setup.ml", line 1, characters 0-1:

(note that filename here comes from line no. directives in setup.ml and does not correspond to actual file on my local box)

To reproduce with vanilla ocaml:
ocaml -w +27 -warn-error +27 setup.ml -configure

To get the list of offending unused variables:
ocaml -w +27 setup.ml -configure

Followup

No Followups Have Been Posted

Attached Files:

Changes:

Field Old Value Date By
assigned_tonone2012-03-12 22:14gildor-admin
Due in versionNone2011-11-24 10:04gildor-admin