--- .../Source/C/LzmaCompress/Sdk/C/LzmaEnc.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/edk2/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c b/edk2/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c index 529fd98..5c23a4d 100644 --- a/edk2/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c +++ b/edk2/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c @@ -1919,11 +1919,13 @@ static SRes LzmaEnc_CodeOneBlock(CLzmaEnc *p, Bool useLimits, UInt32 maxPackSize static SRes LzmaEnc_Alloc(CLzmaEnc *p, UInt32 keepWindowSize, ISzAlloc *alloc, ISzAlloc *allocBig) { UInt32 beforeSize = kNumOpts; + #ifdef COMPRESS_MF_MT Bool btMode; + #endif if (!RangeEnc_Alloc(&p->rc, alloc)) return SZ_ERROR_MEM; - btMode = (p->matchFinderBase.btMode != 0); #ifdef COMPRESS_MF_MT + btMode = (p->matchFinderBase.btMode != 0); p->mtMode = (p->multiThread && !p->fastMode && btMode); #endif