audk/PcAtChipsetPkg
Dandan Bi 2d3a626e3e PcAtChipsetPkg/IsaAcpiDxe: Fix VS2012 build failure
Done:
if (EFI_ERROR (Status)) {
  if (PciIo != NULL && Enabled) {
    PciIo->Attributes (
             PciIo,
             EfiPciIoAttributeOperationSet,
             OriginalAttributes,
             NULL
             );
  }
}
In above codes, VS2012/VS2010 will report that "OriginalAttributes"
will be used without initialization. But in fact, when the if expression
is true(if (PciIo != NULL && Enabled)), the "OriginalAttributes" must be
initialized. In order to fix this false positive issue, we initialize the
"OriginalAttributes" after declaration.

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
2017-11-23 08:43:21 +08:00
..
8254TimerDxe PcAtChipsetPkg: Fix typing errors 2017-01-20 08:50:09 +08:00
8259InterruptControllerDxe PcAtChipsetPkg: Fix typing errors 2017-01-20 08:50:09 +08:00
Bus/Pci/IdeControllerDxe PcAtChipsetPkg: Fix typing errors 2017-01-20 08:50:09 +08:00
HpetTimerDxe PcAtChipsetPkg: Fix typing errors 2017-01-20 08:50:09 +08:00
Include Add "#ifdef ... #define ... #endif" check for the header file. 2011-09-07 02:42:52 +00:00
IsaAcpiDxe PcAtChipsetPkg/IsaAcpiDxe: Fix VS2012 build failure 2017-11-23 08:43:21 +08:00
Library PcAtChipsetPkg/SerialIoLib: Remove negative value shift 2017-05-19 12:12:06 -07:00
PcatRealTimeClockRuntimeDxe PcAtChipsetPkg: Update GUID usage in PcRtc INF to match the source code 2017-10-10 18:10:18 +08:00
PcAtChipsetPkg.dec PcAtChipsetPkg: Add two PCDs for Reset Control Register and Value 2016-06-28 10:08:58 +08:00
PcAtChipsetPkg.dsc PcAtChipsetPkg: Remove KbcResetDxe 2016-09-02 10:07:17 +08:00
PcAtChipsetPkg.uni PcAtChipsetPkg: Add two PCDs for Reset Control Register and Value 2016-06-28 10:08:58 +08:00
PcAtChipsetPkgExtra.uni PcAtChipsetPkg: Convert all .uni files to utf-8 2015-12-15 04:57:25 +00:00