Index: src/ResolvExpr/CommonType.cc
===================================================================
--- src/ResolvExpr/CommonType.cc	(revision b9fe89bef7dc42eaa9590f00a8391b0fe1b904a2)
+++ src/ResolvExpr/CommonType.cc	(revision cec4f85562bd44c6740c7d9403b5f14db1dfad06)
@@ -1017,7 +1017,7 @@
 		void postvisit( const ast::TraitInstType * ) {}
 
-		void postvisit( const ast::TypeInstType * inst ) {}
-
-		void postvisit( const ast::TupleType * tuple) {
+		void postvisit( const ast::TypeInstType * ) {}
+
+		void postvisit( const ast::TupleType * tuple ) {
 			tryResolveWithTypedEnum( tuple );
 		}
Index: src/ResolvExpr/Resolver.cc
===================================================================
--- src/ResolvExpr/Resolver.cc	(revision b9fe89bef7dc42eaa9590f00a8391b0fe1b904a2)
+++ src/ResolvExpr/Resolver.cc	(revision cec4f85562bd44c6740c7d9403b5f14db1dfad06)
@@ -1106,5 +1106,5 @@
 
 		/// Removes cast to type of argument (unlike StripCasts, also handles non-generated casts)
-		void removeExtraneousCast( ast::ptr<ast::Expr> & expr, const ast::SymbolTable & symtab ) {
+		void removeExtraneousCast( ast::ptr<ast::Expr> & expr ) {
 			if ( const ast::CastExpr * castExpr = expr.as< ast::CastExpr >() ) {
 				if ( typesCompatible( castExpr->arg->result, castExpr->result ) ) {
@@ -1196,5 +1196,5 @@
 		ast::ptr< ast::Expr > castExpr = new ast::CastExpr{ untyped, type };
 		ast::ptr< ast::Expr > newExpr = findSingleExpression( castExpr, context );
-		removeExtraneousCast( newExpr, context.symtab );
+		removeExtraneousCast( newExpr );
 		return newExpr;
 	}
@@ -2041,5 +2041,5 @@
 		const ast::Type * initContext = currentObject.getCurrentType();
 
-		removeExtraneousCast( newExpr, symtab );
+		removeExtraneousCast( newExpr );
 
 		// check if actual object's type is char[]
