audk/BaseTools/Source/C
Laszlo Ersek 6cc7ada465 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>
2016-02-18 05:28:50 +01:00
..
BootSectImage BaseTools-Source: Update displayed version information 2016-02-16 10:58:40 +08:00
Common BaseTools/PeCoffLoader: fix handling of ARM MOVW/MOVT instruction relocs 2015-10-09 18:55:28 +00:00
EfiLdrImage BaseTools-Source: Update displayed version information 2016-02-16 10:58:40 +08:00
EfiRom License header updated to match correct format. 2014-08-28 13:53:34 +00:00
GenBootSector BaseTools: Fix 'caculate' typos 2016-01-06 01:13:35 +00:00
GenCrc32 License header updated to match correct format. 2014-08-28 13:53:34 +00:00
GenFfs BaseTools: use GUID identifiable section for FFS alignment padding 2015-07-27 13:50:19 +00:00
GenFv BaseTools: Fix 'caculate' typos 2016-01-06 01:13:35 +00:00
GenFw BaseTools/GenFw: Fix a bug for GCC build 2016-02-18 11:25:54 +08:00
GenPage License header updated to match correct format. 2014-08-28 13:53:34 +00:00
GenSec License header updated to match correct format. 2014-08-28 13:53:34 +00:00
GenVtf BaseTools: Update BaseTools to pass VS2015 compiler 2016-01-29 04:54:37 +00:00
GnuGenBootSector License header updated to match correct format. 2014-08-28 13:53:34 +00:00
Include Revert the change in r19137. 2015-12-07 09:01:44 +00:00
LzmaCompress BaseTools: LzmaCompress: fix gcc-6 warning "misleading-indentation" 2016-02-18 05:28:50 +01:00
Makefiles BaseTools: Fix build on FreeBSD and allow use of non-gcc system compiler 2015-07-08 01:06:25 +00:00
PyEfiCompressor License header updated to match correct format. 2014-08-28 13:53:34 +00:00
PyUtility License header updated to match correct format. 2014-08-28 13:53:34 +00:00
Split BaseTools-Source: Update displayed version information 2016-02-16 10:58:40 +08:00
TianoCompress License header updated to match correct format. 2014-08-28 13:53:34 +00:00
VfrCompile BaseTools-Source: Update displayed version information 2016-02-16 10:58:40 +08:00
VolInfo BaseTools/VolInfo: add some generic options 2016-02-18 11:39:15 +08:00
GNUmakefile BaseTools: add ARCH detection for AARCH64 and ARM 2015-08-12 05:22:49 +00:00
Makefile Fix nmake cleanall bugs. 2014-08-25 05:00:34 +00:00