From 5e4c623370cfa3df4e73f80f980e06766bfad929 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Wed, 18 May 2016 14:21:04 +0800 Subject: All - Fix up a bunch of -Wextra warnings --- src/ast/ast.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/ast/ast.cpp') 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) -- cgit v1.2.3