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

validator: Make sure we read an initialised variable #641

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

aleixpol
Copy link
Collaborator

@aleixpol aleixpol commented Jul 9, 2024

We were not reading the kind so it was left undeclared.

src/as-validator.c:3534:7: warning: variable 'ckind' is uninitialized when used here [-Wuninitialized]

We were not reading the kind so it was left undeclared.

src/as-validator.c:3534:7: warning: variable 'ckind' is uninitialized
when used here [-Wuninitialized]
@ximion
Copy link
Owner

ximion commented Jul 9, 2024

We do compile with -Werror on the CI... It's crazy that this has not been caught for years, apparently!
Which GCC/Clang version are you using?

@ximion ximion merged commit da31a93 into main Jul 9, 2024
16 of 17 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