Elyes Haouas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/83435?usp=email )
Change subject: [for test] define NULL as ((nullptr_t)0) ......................................................................
[for test] define NULL as ((nullptr_t)0)
nullptr_t added to GCC-14, let give it a shot (just for test).
Change-Id: Ia0b91cf998748b496d2650475ed0fd010e6e9abd Signed-off-by: Elyes Haouas ehaouas@noos.fr --- M src/include/stddef.h 1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/35/83435/1
diff --git a/src/include/stddef.h b/src/include/stddef.h index 82d38c3..e613622 100644 --- a/src/include/stddef.h +++ b/src/include/stddef.h @@ -19,8 +19,11 @@ typedef __WCHAR_TYPE__ wchar_t; typedef __WINT_TYPE__ wint_t;
+#if (__GNUC__ >= 14) +#define NULL ((nullptr_t)0) +#else #define NULL ((void *)0) - +#endif /* The devicetree data structures are only mutable in ramstage. All other stages have a constant devicetree. */ #if !ENV_PAYLOAD_LOADER