summaryrefslogtreecommitdiff
path: root/src/ast/ast.cpp
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/ast.cpp
parent2983a5f8a6b08acc34413a85f7e554ec7ceaad2d (diff)
downloadmrust-5e4c623370cfa3df4e73f80f980e06766bfad929.tar.gz
All - Fix up a bunch of -Wextra warnings
Diffstat (limited to 'src/ast/ast.cpp')
-rw-r--r--src/ast/ast.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ast/ast.cpp b/src/ast/ast.cpp
index 88897f57..850c1dc3 100644
--- a/src/ast/ast.cpp
+++ b/src/ast/ast.cpp
@@ -241,6 +241,7 @@ SERIALISE_TYPE(Impl::, "AST_Impl", {
::std::ostream& operator<<(::std::ostream& os, const UseStmt& x)
{
+ os << "Use(" << x.path << ")";
return os;
}
@@ -545,7 +546,9 @@ SERIALISE_TYPE_A(EnumVariant::, "AST_EnumVariant", {
})
SERIALISE_TYPE(EnumVariantData::, "AST_EnumVariantData", {
// TODO: Serialise AST::EnumVariantData
+ (void)s;
},{
+ (void)s;
})
SERIALISE_TYPE(Enum::, "AST_Enum", {
@@ -593,15 +596,21 @@ SERIALISE_TYPE(Struct::, "AST_Struct", {
})
SERIALISE_TYPE(StructData::, "AST_StructData", {
// TODO: AST::StructData serialise
+ (void)s;
},{
+ (void)s;
})
SERIALISE_TYPE(StructItem::, "AST_StructItem", {
// TODO: AST::StructItem serialise
+ (void)s;
},{
+ (void)s;
})
SERIALISE_TYPE(TupleItem::, "AST_TupleItem", {
// TODO: AST::TupleItem serialise
+ (void)s;
},{
+ (void)s;
})
::std::ostream& operator<<(::std::ostream& os, const TypeParam& tp)