Skip to content

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

Closed
MarcelRaad wants to merge 1 commit intocurl:masterfrom
MarcelRaad:gcc_wjump-misses-init
Closed

build: enable -Wjump-misses-init for GCC 4.5+#16252
MarcelRaad wants to merge 1 commit intocurl:masterfrom
MarcelRaad:gcc_wjump-misses-init

Conversation

@MarcelRaad
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
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