Repository navigation
fix -Wreturn-type and -Wstrict-prototypes in gd configure - #12328
Conversation
This kind of thing is why -Werror is enabled late, but in this case, I don't see any reason why we shouldn't just fix it.
|
I don't think GD can be compiled with Or is that a different warning? |
Girgias
left a comment
There was a problem hiding this comment.
Other than the general comment, this looks sensible to me
|
I hit this when using some other flag combinations because I didn't even get through the configure stage. I'm not sure about the gd prototype stuff, but this failure is in a random config.m4 check written ages ago. |
|
Fun, there's a segmentation fault in Of course, there's no way this is the fault of this PR. Is there someone specifically I should ping? |
|
@morrisonlevi That was due to a bad commit in 8.3 that's been reverted in the meantime. Rebasing your PR should fix it. |
This kind of thing is why
-Werroris enabled late, but in this case, I don't see any reason why we shouldn't just fix it. As C23 approaches, I expect more and more compilers to care about-Wstrict-prototypesand possibly even turn it to an error by default.