Skip to content

Conversation

@ElectricalPaul
Copy link
Contributor

PR#51217 changed the init_entry structure, but Z_INIT_ENTRY_NAME (called by SYS_INIT or SYS_INIT_NAMED) does not initialize all of the members of the struct, leading to errors when building with -Werror=missing-field-initializers.

Change the macro to initialize the dev member to NULL so that all members of the struct are initialized.

[PR#51217](zephyrproject-rtos#51217)
changed the `init_entry` structure, but `Z_INIT_ENTRY_NAME` (called
by `SYS_INIT` or `SYS_INIT_NAMED`) does not initialize all of the
members of the struct, leading to errors when building with
`-Werror=missing-field-initializers`.

Change the macro to initialize the `dev` member to `NULL` so that
all members of the struct are initialized.

Signed-off-by: Paul Fagerburg <[email protected]>
@carlescufi carlescufi requested a review from gmarull April 13, 2023 17:12
@carlescufi carlescufi assigned gmarull and unassigned tbursztyka Apr 13, 2023
@nashif nashif merged commit 04611a5 into zephyrproject-rtos:main Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants