Skip to content
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

chore(c): satisfy -Wextra -Wpedantic #917

Merged
merged 1 commit into from
Jul 19, 2023
Merged

Conversation

lidavidm
Copy link
Member

According to this StackOverflow answer, struct Foo foo = {0} isn't reliable for zero-initializing a struct. We don't define any default initializers because these are C structs, but regardless, GCC isn't happy, so let's be fully explicit.

Fixes #845.

@lidavidm lidavidm added this to the ADBC Libraries 0.6.0 milestone Jul 19, 2023
@lidavidm lidavidm merged commit 5620b03 into apache:main Jul 19, 2023
64 of 65 checks passed
@lidavidm lidavidm deleted the gh-845-warnings branch July 19, 2023 18:14
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.

c: make build -Wextra/-Wpedantic clean
1 participant