 +template class MRFEnergy<TypeTruncatedLinear2D>;
 +template class MRFEnergy<TypeTruncatedQuadratic2D>;
 +*/
-diff -rupNb TRW_S-v1.3/minimize.cpp TRW_S-v1.3-new/minimize.cpp
+diff -rupN TRW_S-v1.3/minimize.cpp TRWS-v1.3.src-patched/minimize.cpp
 --- TRW_S-v1.3/minimize.cpp	2006-11-17 16:29:24.000000000 +0100
-+++ TRW_S-v1.3-new/minimize.cpp	2012-04-26 13:41:27.000000000 +0200
++++ TRWS-v1.3.src-patched/minimize.cpp	2012-07-19 14:57:12.000000000 +0200
 @@ -20,7 +20,7 @@ template <class T> int MRFEnergy<T>::Min
  		CompleteGraphConstruction();
  	}

 
 // Example: minimizing an energy function with Potts terms.
 // See type*.h files for other types of terms.
@@ -61,7 +66,8 @@ void testPotts()
 	delete mrf;
 }
 

 		}
 
 		if (lastIter) break;
@@ -150,7 +150,7 @@ template <class T> int MRFEnergy<T>::Min
 	Node* i;
 	Node* j;
 	MRFEdge* e;
-	REAL vMin;
+	//REAL vMin;
 	int iter;
 
 	if (!m_isEnergyConstructionCompleted)
@@ -229,7 +229,8 @@ template <class T> int MRFEnergy<T>::Min
 
 				const REAL gamma = 1;
 
-				vMin = e->m_message.UpdateMessage(m_Kglobal, i->m_K, j->m_K, Di, gamma, 1, buf);
+				//vMin = e->m_message.UpdateMessage(m_Kglobal, i->m_K, j->m_K, Di, gamma, 1, buf);
+				e->m_message.UpdateMessage(m_Kglobal, i->m_K, j->m_K, Di, gamma, 1, buf);
 			}
 
 			if (lastIter && min_marginals)
diff -rupN TRW_S-v1.3/typeGeneral.h TRWS-v1.3.src-patched/typeGeneral.h
--- TRW_S-v1.3/typeGeneral.h	2006-11-18 14:49:14.000000000 +0100
+++ TRWS-v1.3.src-patched/typeGeneral.h	2012-07-19 14:46:58.000000000 +0200
@@ -480,20 +480,20 @@ inline TypeGeneral::REAL TypeGeneral::Ed
 	{
 		assert(Ksource.m_K == Kdest.m_K);
 
-		int k, kMin;
+		int k; //, kMin;
 
 		m_message->m_data[0] = gamma*source->m_data[0] - m_message->m_data[0];
-		kMin = 0;
+		//kMin = 0;
 		vMin = m_message->m_data[0];
 
 		for (k=1; k<Ksource.m_K; k++)
 		{
 			m_message->m_data[k] = gamma*source->m_data[k] - m_message->m_data[k];
-			kMin = 0;
+			//kMin = 0;
 			vMin = buf->m_data[0];
 			if (vMin > m_message->m_data[k])
 			{
-				kMin = k;
+				//kMin = k;
 				vMin = m_message->m_data[k];
 			}
 		}
