From cd4e709ead8a3e97eee0ef7b362240986e18fbd5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 22 May 2015 15:43:41 +0200 Subject: Get rid of gcc, clang warnings (-Wall) --- build/prerequisite | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'build/prerequisite') 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. -- cgit v1.1