X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcomponents%2Flibrary%2Flibrarian.ml;h=bcb84fd6791f9f142defb474dd33f6c8c83958cd;hb=3220eee6c3dd2968727c5c595d6ca78e89291b5f;hp=13fccbfa25479beee0e52634cc75ebddf7dbf2ec;hpb=cf8b1c25a0011ca2a8a856b39e046da33c451221;p=helm.git diff --git a/matita/components/library/librarian.ml b/matita/components/library/librarian.ml index 13fccbfa2..bcb84fd67 100644 --- a/matita/components/library/librarian.ml +++ b/matita/components/library/librarian.ml @@ -41,7 +41,7 @@ let find_root path = let path = absolutize path in let paths = List.rev (Str.split (Str.regexp "/") path) in let rec build = function - | he::tl as l -> ("/" ^ String.concat "/" (List.rev l) ^ "/") :: build tl + | _he::tl as l -> ("/" ^ String.concat "/" (List.rev l) ^ "/") :: build tl | [] -> ["/"] in let paths = List.map HExtlib.normalize_path (build paths) in @@ -78,7 +78,7 @@ let load_root_file rootpath = let find_root_for ~include_paths file = let include_paths = "" :: Sys.getcwd () :: include_paths in - let rec find_path_for file = + let find_path_for file = try HExtlib.find_in include_paths file with Failure "find_in" -> HLog.error ("We are in: " ^ Sys.getcwd ());