aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-02-06 04:51:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-02-06 04:51:48 +0200
commit5b21820a4ad0f69290c6a20643640ff5fbf5021a (patch)
tree50947d50897e389fe29433cfda4fcbb633a1b21f /libbuild2/cc
parent0e1b73e3b43bca7c1d77ed669b364819ad211da9 (diff)
Fix bunch of maybe used uninitialized warnings
Diffstat (limited to 'libbuild2/cc')
-rw-r--r--libbuild2/cc/common.cxx2
-rw-r--r--libbuild2/cc/pkgconfig.cxx3
2 files changed, 3 insertions, 2 deletions
diff --git a/libbuild2/cc/common.cxx b/libbuild2/cc/common.cxx
index 7306274..44722c4 100644
--- a/libbuild2/cc/common.cxx
+++ b/libbuild2/cc/common.cxx
@@ -643,7 +643,7 @@ namespace build2
<< " dependency " << *t << " is " << w <<
info << "mentioned in *.export." << (impl ? "impl_" : "")
<< "libs of target " << l <<
- info << "is it a prerequisite of " << l << "?";
+ info << "is it a prerequisite of " << l << "?" << endf;
}
// Process it recursively.
diff --git a/libbuild2/cc/pkgconfig.cxx b/libbuild2/cc/pkgconfig.cxx
index d8ccaad..046fbc8 100644
--- a/libbuild2/cc/pkgconfig.cxx
+++ b/libbuild2/cc/pkgconfig.cxx
@@ -2008,7 +2008,8 @@ namespace build2
}
catch (const invalid_argument& e)
{
- fail << "invalid metadata version in library " << g << ": " << e;
+ fail << "invalid metadata version in library " << g << ": " << e
+ << endf;
}
if (ver != 1)