From dab05fa5ebea3aaf7107c8acf18a7f17c556a45c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 9 Feb 2018 09:00:42 +0200 Subject: Fix GCC's "maybe used uninitialized" warning --- build2/b.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build2/b.cxx') 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. -- cgit v1.1