Index: src/ResolvExpr/CommonType.cc
===================================================================
--- src/ResolvExpr/CommonType.cc	(revision dc58e5daa87c5b617ac609696ff96cc7f4d5a5a6)
+++ src/ResolvExpr/CommonType.cc	(revision fbe3f03e6d4108c04b7ad01b9544077826dea88c)
@@ -597,5 +597,5 @@
 	}
 
-	void postvisit( const ast::ArrayType * arr ) {}
+	void postvisit( const ast::ArrayType * ) {}
 
 	void postvisit( const ast::ReferenceType * ref ) {
@@ -641,9 +641,9 @@
 	}
 
-	void postvisit( const ast::FunctionType * func) {}
-
-	void postvisit( const ast::StructInstType * inst ) {}
-
-	void postvisit( const ast::UnionInstType * inst ) {}
+	void postvisit( const ast::FunctionType * ) {}
+
+	void postvisit( const ast::StructInstType * ) {}
+
+	void postvisit( const ast::UnionInstType * ) {}
 
 	void postvisit( const ast::EnumInstType * enumInst ) {
@@ -660,5 +660,5 @@
 	void postvisit( const ast::TypeInstType * ) {}
 
-	void postvisit( const ast::TupleType * tuple ) {}
+	void postvisit( const ast::TupleType * ) {}
 
 	void postvisit( const ast::VarArgsType * ) {}
Index: src/Validate/ReplacePseudoFunc.cpp
===================================================================
--- src/Validate/ReplacePseudoFunc.cpp	(revision dc58e5daa87c5b617ac609696ff96cc7f4d5a5a6)
+++ src/Validate/ReplacePseudoFunc.cpp	(revision fbe3f03e6d4108c04b7ad01b9544077826dea88c)
@@ -55,6 +55,5 @@
                             typedResult.strict_as<ast::ApplicationExpr>();
                         return ast::deepCopy(ret);
-                    } else if (auto posType =
-                                   argAsDecl->type.as<ast::EnumAttrType>()) {
+                    } else if (argAsDecl->type.as<ast::EnumAttrType>()) {
                         std::cerr << "PseudoFunc: succ/pred should not be applied on EnumAttrType directly" << std::endl;
                     }
