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

build: enable -Wjump-misses-init for GCC 4.5+ #16252

Closed
wants to merge 1 commit into from

Conversation

MarcelRaad
Copy link
Member

This should have caught #16246.

@MarcelRaad MarcelRaad force-pushed the gcc_wjump-misses-init branch from d174eed to 9d43e0b Compare February 8, 2025 10:06
MarcelRaad added a commit to MarcelRaad/curl that referenced this pull request Feb 8, 2025
@MarcelRaad MarcelRaad marked this pull request as ready for review February 8, 2025 10:06
@MarcelRaad
Copy link
Member Author

MarcelRaad commented Feb 9, 2025

Ah, GCC is stricter here than MSVC and warns about missing initializations also for variables not used after the goto label. Will try to look into that tomorrow in the next days.

MarcelRaad added a commit to MarcelRaad/curl that referenced this pull request Feb 16, 2025
@MarcelRaad MarcelRaad force-pushed the gcc_wjump-misses-init branch from 9d43e0b to b63d955 Compare February 16, 2025 20:53
@MarcelRaad
Copy link
Member Author

I'll make a separate PR for the code changes I just pushed. Just want to verify that I caught all cases for this warning.

@MarcelRaad MarcelRaad force-pushed the gcc_wjump-misses-init branch from b63d955 to db4d617 Compare February 17, 2025 07:48
@MarcelRaad MarcelRaad deleted the gcc_wjump-misses-init branch February 17, 2025 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants