Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 82a03a824824a348fbbff7de680e15284bfc61a4
      
https://github.com/tianocore/edk2/commit/82a03a824824a348fbbff7de680e15284bfc61a4
  Author: Michael D Kinney <michael.d.kin...@intel.com>
  Date:   2025-09-19 (Fri, 19 Sep 2025)

  Changed paths:
    M RedfishPkg/Library/JsonLib/JsonLib.inf

  Log Message:
  -----------
  RedfishPkg/JsonLib: Define NO_MSABI_VA_FUNCS for GCC X64

For GCC family X64 builds, add -DNO_MSABI_VA_FUNCS to force
use of the compiler default vararg macros. This define is
required in libraries that use a standard C source submodule
and there are one or more vararg functions. The calling
convention of the vararg function must match the calling
convention of the vararg macros used within the vararg
function.

In the JsonLib case, jsonp_error_set() is a vararg function
and generates the following error for CLANGDWARF X64 builds.

RedfishPkg/Library/JsonLib/jansson/src/error.c:37:5:
error: '__builtin_ms_va_start' used in System V ABI function
37 |     va_start(ap, msg);
   |     ^

This change matches CryptoPkg openssl and mbedtls library
INF files that also define NO_MSABI_VA_FUNCS.

Signed-off-by: Michael D Kinney <michael.d.kin...@intel.com>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to