aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2016-07-13 17:00:25 +0200
committerPierre-Marie Pédrot2016-07-13 17:00:25 +0200
commit9f003b933c2a3504683a84ed817021659e80bc8f (patch)
tree4e9636ca44aed009d2274b03e64313c770a8b026 /lib
parent7217d14466bf900ec0353b6bbcb7e4d4b78ec2bf (diff)
parent45250332a1e65d434432940a468312f2ab18a2e8 (diff)
Merge branch 'v8.6'
Diffstat (limited to 'lib')
-rw-r--r--lib/cWarnings.ml2
-rw-r--r--lib/pp.ml2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/cWarnings.ml b/lib/cWarnings.ml
index 7b8dc2b9b5..78fa84f333 100644
--- a/lib/cWarnings.ml
+++ b/lib/cWarnings.ml
@@ -48,7 +48,7 @@ let create ~name ~category ?(default=Enabled) pp =
CErrors.user_err_loc (loc,"_",pp x)
| Enabled ->
let msg =
- pp x ++ str " [" ++ str name ++ str "," ++
+ pp x ++ spc () ++ str "[" ++ str name ++ str "," ++
str category ++ str "]"
in
let loc = Option.default !current_loc loc in
diff --git a/lib/pp.ml b/lib/pp.ml
index f1eb4c0598..7f4bc149dc 100644
--- a/lib/pp.ml
+++ b/lib/pp.ml
@@ -204,7 +204,7 @@ let pr_loc_pos loc =
int (fst loc) ++ str"-" ++ int (snd loc)
let pr_loc loc =
- if Loc.is_ghost loc then str"<unknown>"
+ if Loc.is_ghost loc then str"<unknown>" ++ fnl ()
else
let fname = loc.Loc.fname in
if CString.equal fname "" then