summaryrefslogtreecommitdiff
path: root/cparser/Elab.ml
diff options
context:
space:
mode:
Diffstat (limited to 'cparser/Elab.ml')
-rw-r--r--cparser/Elab.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/cparser/Elab.ml b/cparser/Elab.ml
index 870385d..2da1936 100644
--- a/cparser/Elab.ml
+++ b/cparser/Elab.ml
@@ -1508,13 +1508,13 @@ let rec enter_decdefs local loc env = function
(* check for incomplete type *)
if sto' <> Storage_extern && incomplete_type env ty' then
warning loc "'%s' has incomplete type" s;
- if local && sto <> Storage_extern && sto <> Storage_static then begin
+ if local && sto' <> Storage_extern && sto' <> Storage_static then begin
(* Local definition *)
let (decls, env3) = enter_decdefs local loc env2 rem in
((sto', id, ty', init') :: decls, env3)
end else begin
(* Global definition *)
- emit_elab (elab_loc loc) (Gdecl(sto, id, ty', init'));
+ emit_elab (elab_loc loc) (Gdecl(sto', id, ty', init'));
enter_decdefs local loc env2 rem
end