Index: src/ResolvExpr/CommonType.cc
===================================================================
--- src/ResolvExpr/CommonType.cc	(revision a4da45ee15c7b12fa95d6fa3d7ed164730c4d88e)
+++ src/ResolvExpr/CommonType.cc	(revision f1149acdd1aec2da8d7e43ad6e4025f8b736412b)
@@ -398,5 +398,5 @@
 				}
 			}
-		} else if ( const ast::EnumPosType * pos = dynamic_cast< const ast::EnumPosType * >( type2 ) ) {
+		} else if ( dynamic_cast< const ast::EnumPosType * >( type2 ) ) {
 			ast::BasicType::Kind kind = commonTypes[ basic->kind ][ ast::BasicType::SignedInt ];
 			if (
Index: src/ResolvExpr/Unify.cc
===================================================================
--- src/ResolvExpr/Unify.cc	(revision a4da45ee15c7b12fa95d6fa3d7ed164730c4d88e)
+++ src/ResolvExpr/Unify.cc	(revision f1149acdd1aec2da8d7e43ad6e4025f8b736412b)
@@ -517,5 +517,5 @@
 		}
 
-		void postvisit( const ast::EnumPosType * posType ) {
+		void postvisit( const ast::EnumPosType * ) {
 			// Does nothing for now. Handled in ReplacePseudoFunc
 			// Might move here in the future
