aboutsummaryrefslogtreecommitdiff
path: root/build2/b.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-02-09 09:00:42 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-02-09 09:00:42 +0200
commitdab05fa5ebea3aaf7107c8acf18a7f17c556a45c (patch)
treef1813aeb658ee43b9edb83cf73f30a12f0df6332 /build2/b.cxx
parent01d4787695cec0e1ed94d34bcb20b6b14bb81290 (diff)
Fix GCC's "maybe used uninitialized" warning
Diffstat (limited to 'build2/b.cxx')
-rw-r--r--build2/b.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/build2/b.cxx b/build2/b.cxx
index 36bcb2a..b88fd5e 100644
--- a/build2/b.cxx
+++ b/build2/b.cxx
@@ -609,14 +609,14 @@ main (int argc, char* argv[])
if (os.empty ()) // Default target: dir{}.
os.push_back (targetspec (name ("dir", string ())));
- operation_id oid (0), orig_oid;
+ operation_id oid (0), orig_oid (0);
const operation_info* oif (nullptr);
const operation_info* outer_oif (nullptr);
- operation_id pre_oid (0), orig_pre_oid;
+ operation_id pre_oid (0), orig_pre_oid (0);
const operation_info* pre_oif (nullptr);
- operation_id post_oid (0), orig_post_oid;
+ operation_id post_oid (0), orig_post_oid (0);
const operation_info* post_oif (nullptr);
// Return true if this operation is lifted.