summaryrefslogtreecommitdiff
path: root/Edk2Setup.bat
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2016-02-14 08:17:16 +0100
committerLaszlo Ersek <lersek@redhat.com>2016-02-18 05:28:50 +0100
commit6cc7ada465a7c5a6dab6e32abd5a4b6f1734c1d0 (patch)
treefa9afb3c705dcdfc6baa8bdba844d4ff78d8ff0f /Edk2Setup.bat
parent730ffca1943d8965f68faa55216ba5857635bcd2 (diff)
downloadedk2-6cc7ada465a7c5a6dab6e32abd5a4b6f1734c1d0.zip
edk2-6cc7ada465a7c5a6dab6e32abd5a4b6f1734c1d0.tar.gz
edk2-6cc7ada465a7c5a6dab6e32abd5a4b6f1734c1d0.tar.bz2
BaseTools: LzmaCompress: fix gcc-6 warning "misleading-indentation"
The way the first use of the "_maxMode" variable is commented out (i.e., together with the enclosing "if" statement) in GetOptimum() triggers the "misleading-indentation" warning that is new in gcc-6.0, for the block of code that originally depended on the "if" statement. Gcc believes (mistakenly) that the programmer believes (mistakenly) that the block depends on (repIndex == 0) higher up. Restore the if statement, with a controlling expression that comprises the constant 1 and "_maxMode" commented out. Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Cole Robinson <crobinso@redhat.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Reported-by: Cole Robinson <crobinso@redhat.com> Suggested-by: Jordan Justen <jordan.l.justen@intel.com> Build-tested-by: Cole Robinson <crobinso@redhat.com> Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1307439 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'Edk2Setup.bat')
0 files changed, 0 insertions, 0 deletions