Skip to content

Try not to use c-style initializers #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

fomichev
Copy link

@fomichev fomichev commented Jul 3, 2025

They are ok if they are in the same order as the fields. Otherwise g++ complains about them:
error: designator order for field ‘ynl_ntf_info::policy’ does not match declaration order in ‘ynl_ntf_info’

Use regular var.field = val style initializers. Also regenerate the libs.

Stanislav Fomichev added 3 commits July 2, 2025 13:22
More strict/old compilers do not like them:

error: designator order for field ‘ynl_policy_attr::type’ does not match declaration order in ‘ynl_policy_attr’
error: designator order for field ‘ynl_policy_attr::type’ does not match declaration order in ‘ynl_policy_attr

Signed-off-by: Stanislav Fomichev <[email protected]>
More strict/old compilers do not like them:

error: designator order for field ‘ynl_ntf_info::policy’ does not match declaration order in ‘ynl_ntf_info’

Signed-off-by: Stanislav Fomichev <[email protected]>
Signed-off-by: Stanislav Fomichev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant