Commit eb351f05 authored by Keith Packard's avatar Keith Packard Committed by Henrik Brix Andersen
Browse files

test/kernel: Initialize stack_sem in obj_validation test



GCC 14.3 is not happy when this variable is left uninitialized, although
we don't actually care about the contents, just the address.

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent d44f8065
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ void object_permission_checks(struct k_sem *sem, bool skip_init)
 */
ZTEST(object_validation, test_generic_object)
{
	struct k_sem stack_sem;
	struct k_sem stack_sem = {};

	/* None of these should be even in the table */
	zassert_false(test_object(&stack_sem, -EBADF));