Skip to content
Snippets Groups Projects
Commit 1a8ea37d authored by Pierre Loic Garoche's avatar Pierre Loic Garoche
Browse files

Commenting unused vars

parent 916eb472
No related branches found
No related tags found
No related merge requests found
...@@ -93,7 +93,7 @@ let extract_contract machines m = ...@@ -93,7 +93,7 @@ let extract_contract machines m =
let machine_spec = find_submachine_from_ident ident machines in let machine_spec = find_submachine_from_ident ident machines in
let guarantees = let guarantees =
match machine_spec.mspec.mnode_spec with match machine_spec.mspec.mnode_spec with
| Some (Contract contract) -> | Some (Contract _ (*contract*) ) ->
(* assert (contract.consts = []); (* assert (contract.consts = []);
* assert (contract.locals = []); * assert (contract.locals = []);
* assert (contract.stmts = []); * assert (contract.stmts = []);
......
...@@ -533,7 +533,7 @@ let empty_machine = ...@@ -533,7 +533,7 @@ let empty_machine =
let new_instance = let new_instance =
let cpt = ref (-1) in let cpt = ref (-1) in
fun callee tag -> fun callee _(*tag*) ->
let o = let o =
if Stateless.check_node callee then node_name callee if Stateless.check_node callee then node_name callee
else else
......
...@@ -416,7 +416,7 @@ let register_node vars annots = ...@@ -416,7 +416,7 @@ let register_node vars annots =
[] []
annots annots
let check_node nd vars = let check_node _(*nd*) _(*vars*) =
(* TODO check that all access to vars are valid *) (* TODO check that all access to vars are valid *)
() ()
......
...@@ -396,7 +396,7 @@ let pp_dep_graph fmt node_schs = ...@@ -396,7 +396,7 @@ let pp_dep_graph fmt node_schs =
report.dep_graph) report.dep_graph)
node_schs node_schs
let pp_warning_unused fmt node_schs = let pp_warning_unused _(*fmt*) node_schs =
IMap.iter IMap.iter
(fun nd report -> (fun nd report ->
let unused = report.unused_vars in let unused = report.unused_vars in
......
...@@ -18,7 +18,7 @@ let get_node nid prog = ...@@ -18,7 +18,7 @@ let get_node nid prog =
match t.top_decl_desc with Node n -> n.node_id = nid | _ -> false) match t.top_decl_desc with Node n -> n.node_id = nid | _ -> false)
prog prog
let check_external_defs x not_nodes = true let check_external_defs _ (*x*) _ (*not_nodes*) = true
(* TODO, check whether a node, a function or an include defines this node *) (* TODO, check whether a node, a function or an include defines this node *)
let sort prog = let sort prog =
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment