audk/MdePkg/Include
Mike Beaton 0aa93aecb7 MdePkg: Fix DEBUG_CODE and PERF_CODE macros for XCODE5
Without these changes, we get the error:

  error: variable '__DebugCodeLocal' set but not used

from the DebugLib.h DEBUG_CODE_BEGIN()/END() macros on XCODE5.

Similarly, in NOOPT builds only, we get:

  error: variable '__PerformanceCodeLocal' set but not used

from the PerformanceLib.h PERF_CODE_BEGIN()/END() macros on XCODE5.

It is important to note that the previous code involving a local
variable was intended to ensure correct behaviour of ; following
the macros, in particular that ; should be required:
 - https://github.com/tianocore/edk2/pull/6226#issuecomment-2364087866
 - https://github.com/tianocore/edk2/pull/6226#issuecomment-2364619759
This converted version repeats the
standard do { ... } while (FALSE) idiom (which is already used in
the END macro) to achieve the same affect.

The modified versions work on all toolchains.

Signed-off-by: Mike Beaton <mjsbeaton@gmail.com>
2024-09-27 16:57:36 +00:00
..
AArch64 MdePkg: Move AsmMacroIoLib*.h from ArmPkg 2024-09-12 19:36:59 +00:00
Arm MdePkg: Move AsmMacroIoLib*.h from ArmPkg 2024-09-12 19:36:59 +00:00
Ebc
Guid MdePkg: Adding EBBR EFI_CONFORMANCE_PROFILE_TABLE GUIDs 2024-07-10 06:13:07 +00:00
Ia32
IndustryStandard MdePkg/Http11.h: Add HTTP header definitions. 2024-09-13 10:26:09 +00:00
Library MdePkg: Fix DEBUG_CODE and PERF_CODE macros for XCODE5 2024-09-27 16:57:36 +00:00
LoongArch64
Pi
Ppi
Protocol MdePkg: Add HTTP error 429 2024-09-02 21:17:25 +00:00
Register MdePkg: Remove the old name of LoongArch CSR 0x20 2024-08-30 19:54:01 +00:00
RiscV64
Uefi MdePkg: Move MEMORY_TYPE_* Defines to EFI_MEMORY_TYPE Enum 2024-07-26 03:08:20 +00:00
X64
Base.h MdePkg:Update Return Error Macro in Base.h 2024-09-03 18:42:10 +00:00
ConfidentialComputingGuestAttr.h MdePkg: Add AMD SEV features to PcdConfidentialComputingGuestAttr 2024-07-04 20:39:26 +00:00
PiDxe.h
PiMm.h
PiPei.h
PiSmm.h
Uefi.h