diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2024-10-28 08:18:59 +0100 |
---|---|---|
committer | Elyes Haouas <ehaouas@noos.fr> | 2024-10-29 01:41:41 +0000 |
commit | 686b36bab86f49a796f07aaa9d73a9305461969a (patch) | |
tree | f7d14b72f9cd684bb7c713a8050424e7f9c09229 /src/lib | |
parent | 9dc9ef3082714b98ed14f37d6e82f96b02ef5946 (diff) |
tree: Fix cast an object of type 'nullptr_t' to 'uintptr_t' error
This to fix the error when using C23:
cannot cast an object of type 'nullptr_t' to 'uintptr_t' (aka 'unsigned long')
return (uintptr_t)NULL;
^
Change-Id: Ibdc8794513a508fc61a5046692f854183c36b781
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84893
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jakub Czapiga <czapiga@google.com>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/thread.c b/src/lib/thread.c index 944c75e19c..8b58ca0f3e 100644 --- a/src/lib/thread.c +++ b/src/lib/thread.c @@ -251,7 +251,7 @@ static void threads_initialize(void) set_current_thread(t); - t->stack_orig = (uintptr_t)NULL; /* We never free the main thread */ + t->stack_orig = 0; /* We never free the main thread */ t->id = 0; t->can_yield = 1; |