summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2016-02-29 11:18:12 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2016-02-29 17:56:48 +0800
commitb0c583cdd19cc6316cbda82cb79df4346a7db8c7 (patch)
tree353b1145c1ae6e4f24898295cae4f5c03a7bf1f1 /BaseTools
parent609730ef9120cb4f30a85afc7f7833a7cc554312 (diff)
downloadedk2-b0c583cdd19cc6316cbda82cb79df4346a7db8c7.tar.gz
edk2-b0c583cdd19cc6316cbda82cb79df4346a7db8c7.tar.bz2
edk2-b0c583cdd19cc6316cbda82cb79df4346a7db8c7.zip
BaseTools: fix LzmaCompress VS2013 make failure
when make BaseTools by VS2013, LzmaEnc.c report warning C4127: conditional expression is constant, so this patch fix this issue. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c b/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c
index c6717eeea3..297db9d54d 100644
--- a/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c
+++ b/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c
@@ -1366,8 +1366,9 @@ static UInt32 GetOptimum(CLzmaEnc *p, UInt32 position, UInt32 *backRes)
if (repIndex == 0)
startLen = lenTest + 1;
-
+ #ifndef _MSC_VER
if (1 /* _maxMode */)
+ #endif
{
UInt32 lenTest2 = lenTest + 1;
UInt32 limit = lenTest2 + p->numFastBytes;