diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2016-02-29 11:18:12 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2016-02-29 17:56:48 +0800 |
commit | b0c583cdd19cc6316cbda82cb79df4346a7db8c7 (patch) | |
tree | 353b1145c1ae6e4f24898295cae4f5c03a7bf1f1 /BaseTools/Source/C/LzmaCompress | |
parent | 609730ef9120cb4f30a85afc7f7833a7cc554312 (diff) | |
download | edk2-platforms-b0c583cdd19cc6316cbda82cb79df4346a7db8c7.tar.xz |
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/Source/C/LzmaCompress')
-rw-r--r-- | BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c | 3 |
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;
|