aboutsummaryrefslogtreecommitdiffstats
path: root/cparser/Unblock.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/Unblock.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/Unblock.ml')
-rw-r--r--cparser/Unblock.ml8
1 files changed, 4 insertions, 4 deletions
diff --git a/cparser/Unblock.ml b/cparser/Unblock.ml
index eaf49164..0669be6e 100644
--- a/cparser/Unblock.ml
+++ b/cparser/Unblock.ml
@@ -46,13 +46,13 @@ let rec local_initializer env path init k =
(array_init (Int64.succ pos) il')
end in
array_init 0L il
- | Init_struct(_, fil) ->
+ | Init_struct(id, fil) ->
let field_init (fld, i) k =
local_initializer env
{ edesc = EUnop(Odot fld.fld_name, path); etyp = fld.fld_typ }
i k in
List.fold_right field_init fil k
- | Init_union(_, fld, i) ->
+ | Init_union(id, fld, i) ->
local_initializer env
{ edesc = EUnop(Odot fld.fld_name, path); etyp = fld.fld_typ }
i k
@@ -293,7 +293,7 @@ let rec unblock_stmt env ctx ploc s =
| Slabeled(lbl, s1) ->
add_lineno ctx ploc s.sloc
{s with sdesc = Slabeled(lbl, unblock_stmt env ctx s.sloc s1)}
- | Sgoto _ ->
+ | Sgoto lbl ->
add_lineno ctx ploc s.sloc s
| Sreturn None ->
add_lineno ctx ploc s.sloc s
@@ -311,7 +311,7 @@ let rec unblock_stmt env ctx ploc s =
id:: ctx
else ctx in
unblock_block env ctx' ploc sl
- | Sdecl _ ->
+ | Sdecl d ->
assert false
| Sasm(attr, template, outputs, inputs, clob) ->
let expand_asm_operand (lbl, cstr, e) =