diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2016-02-29 11:18:12 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-03-02 10:19:45 +0800 |
commit | 7dda8dc47259d2f68194944ec6aa225d38525a30 (patch) | |
tree | 2ea2b1ffc1e6f908b5c004091ac281d107f709cb | |
parent | 2393ff514569da4df5a44d56b4294032fd5c518c (diff) | |
download | edk2-platforms-7dda8dc47259d2f68194944ec6aa225d38525a30.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>
(cherry picked from commit b0c583cdd19cc6316cbda82cb79df4346a7db8c7)
-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;
|