aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build2/diagnostics.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/build2/diagnostics.cxx b/build2/diagnostics.cxx
index d972c01..40fa381 100644
--- a/build2/diagnostics.cxx
+++ b/build2/diagnostics.cxx
@@ -72,12 +72,14 @@ namespace build2
if (!ops.no_line ())
{
if (loc_.line != 0)
+ {
r << loc_.line << ':';
- if (!ops.no_column ())
- {
- if (loc_.column != 0)
- r << loc_.column << ':';
+ if (!ops.no_column ())
+ {
+ if (loc_.column != 0)
+ r << loc_.column << ':';
+ }
}
}