Index: src/ResolvExpr/CommonType.cc
===================================================================
--- src/ResolvExpr/CommonType.cc	(revision f6e8c672a67785468988dfd68943c378679cbddf)
+++ src/ResolvExpr/CommonType.cc	(revision 7a29392fc396810355d175074dc01b0ac892be94)
@@ -681,8 +681,8 @@
 
 	void postvisit( const ast::EnumPosType * enumPos ) {
-		if ( auto type2AsPos = dynamic_cast<const ast::EnumPosType *>(type2) ) {
+		if ( dynamic_cast<const ast::EnumPosType *>(type2) ) {
 			// result = commonType( type2AsPos->instance, enumPos->instance, tenv, need, have, open, widen );
 			result = enumPos;
-		} else if (  auto typeAsBasic = dynamic_cast<const ast::BasicType *>(type2) ) {
+		} else if ( dynamic_cast<const ast::BasicType *>(type2) ) {
 			result = type2;
 		}
Index: src/ResolvExpr/ConversionCost.cc
===================================================================
--- src/ResolvExpr/ConversionCost.cc	(revision f6e8c672a67785468988dfd68943c378679cbddf)
+++ src/ResolvExpr/ConversionCost.cc	(revision 7a29392fc396810355d175074dc01b0ac892be94)
@@ -366,5 +366,5 @@
 }
 
-void ConversionCost::postvisit( const ast::EnumInstType * inst ) {
+void ConversionCost::postvisit( const ast::EnumInstType * ) {
 	static ast::ptr<ast::BasicType> integer = { new ast::BasicType( ast::BasicType::SignedInt ) };
 	cost = costCalc( integer, dst, srcIsLvalue, symtab, env );
@@ -375,5 +375,5 @@
 
 void ConversionCost::postvisit( const ast::EnumPosType * src ) {
-	if ( auto dstBase = dynamic_cast<const ast::EnumPosType *>( dst ) ) {
+	if ( dynamic_cast<const ast::EnumPosType *>( dst ) ) {
 		// cost = costCalc( src->instance, dstBase->instance, srcIsLvalue, symtab, env );
 		// if ( cost < Cost::unsafe ) cost.incSafe();
