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

Fix -Wmissing-field-initializers in C++ code #1150

Merged
merged 1 commit into from Apr 23, 2023

Conversation

niklasf
Copy link
Contributor

@niklasf niklasf commented Apr 11, 2023

Unlike C, where = {0} is universal zero initialization, in C++ code this pattern is regular field initialization and therefore emits:

missing field '...' initializer [-Wmissing-field-initializers]

= {} can be used, instead.

@bel2125 bel2125 merged commit 55b81b0 into civetweb:master Apr 23, 2023
5 of 6 checks passed
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.

None yet

2 participants