summaryrefslogtreecommitdiff
path: root/src/ast/path.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-05-18 14:21:04 +0800
committerJohn Hodge <tpg@mutabah.net>2016-05-18 14:21:04 +0800
commit5e4c623370cfa3df4e73f80f980e06766bfad929 (patch)
treeecc4c4d28933725088f97f07ef38d2bb559e35f3 /src/ast/path.hpp
parent2983a5f8a6b08acc34413a85f7e554ec7ceaad2d (diff)
downloadmrust-5e4c623370cfa3df4e73f80f980e06766bfad929.tar.gz
All - Fix up a bunch of -Wextra warnings
Diffstat (limited to 'src/ast/path.hpp')
-rw-r--r--src/ast/path.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ast/path.hpp b/src/ast/path.hpp
index 462ab946..65d65159 100644
--- a/src/ast/path.hpp
+++ b/src/ast/path.hpp
@@ -224,8 +224,8 @@ public:
nodes().back().args() = b[0].args();
else if( b[0].args().size() > 0 )
throw ::std::runtime_error("add_tail to empty path, but generics in source");
- else
- ;
+ else {
+ }
for(unsigned int i = 1; i < b_r.nodes.size(); i ++)
nodes().push_back(b_r.nodes[i]);
m_binding = PathBinding();
@@ -344,9 +344,11 @@ public:
void bind_static(const Static& ent);
void bind_trait(const Trait& ent, const ::std::vector<TypeRef>& args={});
void bind_function(const Function& ent, const ::std::vector<TypeRef>& args={}) {
+ (void)args;
m_binding = PathBinding::make_Function({&ent});
}
void bind_type_alias(const TypeAlias& ent, const ::std::vector<TypeRef>& args={}) {
+ (void)args;
m_binding = PathBinding::make_TypeAlias({&ent});
}