aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build2/cxx/link.cxx1
-rw-r--r--build2/target10
2 files changed, 5 insertions, 6 deletions
diff --git a/build2/cxx/link.cxx b/build2/cxx/link.cxx
index 5792615..762349b 100644
--- a/build2/cxx/link.cxx
+++ b/build2/cxx/link.cxx
@@ -658,7 +658,6 @@ namespace build2
if (pt == nullptr)
pt = &search (oso ? objso::static_type : obja::static_type,
p.key ());
-
}
else if (lib* l = pt->is_a<lib> ())
{
diff --git a/build2/target b/build2/target
index be0eff9..8d2a22d 100644
--- a/build2/target
+++ b/build2/target
@@ -513,8 +513,8 @@ namespace build2
operator!= (const iterator& x, const iterator& y) {return !(x == y);}
private:
- target* t_ {nullptr};
- prerequisites_type* c_ {nullptr};
+ target* t_ = nullptr;
+ prerequisites_type* c_ = nullptr;
base_iterator i_;
};
@@ -908,12 +908,12 @@ namespace build2
return t->mtime_;
}
+ // Note that while we can cache the mtime at any time, it may be ignored
+ // if the target state is group (see the mtime() accessor).
+ //
void
mtime (timestamp mt)
{
- // While we can cache the mtime at any time, it may be ignored
- // if the target state is group (see the mtime() accessor).
- //
mtime_ = mt;
}