aboutsummaryrefslogtreecommitdiffstats
path: root/backend/Fileinfo.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 /backend/Fileinfo.ml
parent2185164c1845c30ebd4118ed5bc8d339b16663a9 (diff)
downloadcompcert-272a5b812b72f4c3e409ccdbeaf3476d95c4b552.tar.gz
compcert-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 'backend/Fileinfo.ml')
-rw-r--r--backend/Fileinfo.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/Fileinfo.ml b/backend/Fileinfo.ml
index a78a24db..0490def0 100644
--- a/backend/Fileinfo.ml
+++ b/backend/Fileinfo.ml
@@ -25,7 +25,7 @@ let reset_filenames () =
let close_filenames () =
Hashtbl.iter
- (fun _ (_, fb) ->
+ (fun file (num, fb) ->
match fb with Some b -> Printlines.close b | None -> ())
filename_info;
reset_filenames()
@@ -46,7 +46,7 @@ let print_file oc file =
try
Hashtbl.find filename_info file
with Not_found ->
- let (filenum, _ as res) = enter_filename file in
+ let (filenum, filebuf as res) = enter_filename file in
fprintf oc " .file %d %S\n" filenum file;
res