aboutsummaryrefslogtreecommitdiffstats
path: root/debug/DebugInformation.ml
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2016-03-10 13:35:48 +0100
committerBernhard Schommer <bernhardschommer@gmail.com>2016-03-10 13:35:48 +0100
commit5b05d3668571bd9b748b781b0cc29ae10f745f61 (patch)
treeaa235b80ff0666c34332be46664ae289d8afaa2c /debug/DebugInformation.ml
parent272087e1bc62bead1d1e1bea3d64e12d013eea37 (diff)
downloadcompcert-kvx-5b05d3668571bd9b748b781b0cc29ae10f745f61.tar.gz
compcert-kvx-5b05d3668571bd9b748b781b0cc29ae10f745f61.zip
Code cleanup.
Removed some unused variables, functions etc. and resolved some problems which occur if all warnings except 3,4,9 and 29 are active. Bug 18394.
Diffstat (limited to 'debug/DebugInformation.ml')
-rw-r--r--debug/DebugInformation.ml8
1 files changed, 4 insertions, 4 deletions
diff --git a/debug/DebugInformation.ml b/debug/DebugInformation.ml
index 105b6aad..e8f1703a 100644
--- a/debug/DebugInformation.ml
+++ b/debug/DebugInformation.ml
@@ -51,7 +51,7 @@ let types: (int,debug_types) Hashtbl.t = Hashtbl.create 7
let lookup_types: (string, int) Hashtbl.t = Hashtbl.create 7
(* Translate a C.typ to a string needed for hashing *)
-let typ_to_string (ty: typ) =
+let typ_to_string ty =
let buf = Buffer.create 7 in
let chan = Format.formatter_of_buffer buf in
Cprint.print_debug_idents := true;
@@ -64,13 +64,13 @@ let typ_to_string (ty: typ) =
let strip_attributes typ = strip_attributes_type typ [AConst; AVolatile]
(* Find the type id to an type *)
-let find_type (ty: typ) =
+let find_type ty =
(* We are only interested in Const and Volatile *)
let ty = strip_attributes ty in
Hashtbl.find lookup_types (typ_to_string ty)
(* Add type and information *)
-let insert_type (ty: typ) =
+let insert_type ty =
let insert d_ty ty =
let id = next_id ()
and name = typ_to_string ty in
@@ -104,7 +104,7 @@ let insert_type (ty: typ) =
arr_size= s;
} in
ArrayType arr
- | TFun (t,param,va,_) ->
+ | TFun (t,param,_,_) ->
let param,prot = (match param with
| None -> [],false
| Some p -> List.map (fun (i,t) -> let t = attr_aux t in