audk/MdePkg
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
..
Include MdePkg: Fix DEBUG_CODE and PERF_CODE macros for XCODE5 2024-09-27 16:57:36 +00:00
Library MdePkg: Add reserved mem fdt helpers 2024-09-14 03:38:47 +00:00
Test MdePkg: Create Stack Check Null Libs 2024-09-13 03:58:46 +00:00
MdeLibs.dsc.inc MdePkg: Create Stack Check Null Libs 2024-09-13 03:58:46 +00:00
MdePkg.ci.yaml MdePkg: Create Stack Check Null Libs 2024-09-13 03:58:46 +00:00
MdePkg.dec MdePkg: Move PcdEnforceSecureRngAlgorithms from NetworkPkg 2024-09-13 14:34:21 +00:00
MdePkg.dsc MdePkg: Remove Old Stack Check Lib Implementation 2024-09-13 03:58:46 +00:00
MdePkg.uni MdePkg: Utilize Cache Management Operations Implementation For RISC-V 2023-12-19 12:48:14 +00:00
MdePkgExtra.uni MdePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:13 -07:00