aboutsummaryrefslogtreecommitdiffstats
path: root/cparser/Env.ml
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2016-03-15 15:07:47 +0100
committerBernhard Schommer <bernhardschommer@gmail.com>2016-03-15 15:07:47 +0100
commit272a5b812b72f4c3e409ccdbeaf3476d95c4b552 (patch)
tree6a8d5e75a11860b69522cef3b512b1ef5effb438 /cparser/Env.ml
parent2185164c1845c30ebd4118ed5bc8d339b16663a9 (diff)
downloadcompcert-kvx-272a5b812b72f4c3e409ccdbeaf3476d95c4b552.tar.gz
compcert-kvx-272a5b812b72f4c3e409ccdbeaf3476d95c4b552.zip
Deactivate warning 27 and added back removed code.
The code was mostly there for documentation effort. So warning 27 is deactivated again. Bug 18349
Diffstat (limited to 'cparser/Env.ml')
-rw-r--r--cparser/Env.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/cparser/Env.ml b/cparser/Env.ml
index 9ab5e657..dae79ef2 100644
--- a/cparser/Env.ml
+++ b/cparser/Env.ml
@@ -120,7 +120,7 @@ let lookup_ident env s =
let lookup_struct env s =
try
- let (_, ci as res) = IdentMap.lookup s env.env_tag in
+ let (id, ci as res) = IdentMap.lookup s env.env_tag in
if ci.ci_kind <> Struct then
raise(Error(Tag_mismatch(s, "struct", "union")));
res
@@ -129,7 +129,7 @@ let lookup_struct env s =
let lookup_union env s =
try
- let (_, ci as res) = IdentMap.lookup s env.env_tag in
+ let (id, ci as res) = IdentMap.lookup s env.env_tag in
if ci.ci_kind <> Union then
raise(Error(Tag_mismatch(s, "union", "struct")));
res
@@ -245,7 +245,7 @@ let add_typedef env id info =
{ env with env_typedef = IdentMap.add id info env.env_typedef }
let add_enum env id info =
- let add_enum_item env (id, v, _) =
+ let add_enum_item env (id, v, exp) =
{ env with env_ident = IdentMap.add id (II_enum v) env.env_ident } in
List.fold_left add_enum_item
{ env with env_enum = IdentMap.add id info env.env_enum }