aboutsummaryrefslogtreecommitdiff
path: root/build/prerequisite
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-05-22 15:43:41 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-05-22 15:43:41 +0200
commitcd4e709ead8a3e97eee0ef7b362240986e18fbd5 (patch)
tree69dc4a360e53a83ac0d9243e40c672a34a568c2a /build/prerequisite
parent2b0b06cbf4288746075a74c12ef233efc929a095 (diff)
Get rid of gcc, clang warnings (-Wall)
Diffstat (limited to 'build/prerequisite')
-rw-r--r--build/prerequisite7
1 files changed, 4 insertions, 3 deletions
diff --git a/build/prerequisite b/build/prerequisite
index e65921e..ba850ec 100644
--- a/build/prerequisite
+++ b/build/prerequisite
@@ -80,14 +80,15 @@ namespace build
inline bool
operator< (const prerequisite& x, const prerequisite& y)
{
- return prerequisite_key {&x.type, &x.dir, &x.name, &x.ext, &x.scope} <
- prerequisite_key {&y.type, &y.dir, &y.name, &y.ext, &y.scope};
+ return prerequisite_key {{&x.type, &x.dir, &x.name, &x.ext}, &x.scope} <
+ prerequisite_key {{&y.type, &y.dir, &y.name, &y.ext}, &y.scope};
}
inline std::ostream&
operator<< (std::ostream& os, const prerequisite& p)
{
- return os << prerequisite_key {&p.type, &p.dir, &p.name, &p.ext, &p.scope};
+ return os <<
+ prerequisite_key {{&p.type, &p.dir, &p.name, &p.ext}, &p.scope};
}
// Set of prerequisites in a scope.