Index: branches/HTM-5.1-dev3-Test-C0135/source/Lib/TLibCommon/TComDataCU.cpp
===================================================================
--- branches/HTM-5.1-dev3-Test-C0135/source/Lib/TLibCommon/TComDataCU.cpp	(revision 317)
+++ branches/HTM-5.1-dev3-Test-C0135/source/Lib/TLibCommon/TComDataCU.cpp	(revision 318)
@@ -5798,5 +5798,7 @@
     Int iTStartViewIdx = 0;
     UInt uiPartIdxRB, uiBRIdx;
-    Int uiViewIdxCurr= getSlice()->getViewId();
+#if !MTK_SIMPLIFY_DVTC
+    Int uiViewIdxCurr = getSlice()->getViewId();
+#endif
     UInt uiPartIdxCenter;
     xDeriveCenterIdx( eCUMode, uiPartIdx, uiPartIdxCenter );
