Repository navigation
Conversation
33c1b8b to
48ab870
Compare
|
If all this complexity is necessary to maintain <4.6 support, |
I can limit the change to the places with |
|
Not to look down on your efforts, but I think the project does not want to maintain such old gcc versions. It's not to get it "right" now, it also requires efforts in the future. |
According to all the PickyWarnings logic and all the tweaks in curl_setup, it looks to me like the project actually cares to maintain compilation with everything out there... I tried to keep the change minimal now. Please review. |
It's mostly remains from the now deleted WinCE support. It's a burden to carry. May I ask, what do you need such old GCC for? |
We have a very old embedded hardware which uses a very old kernel, and we use a very old toolchain for it, because updating the toolchain would require updating the kernel, which is a great mess. So far we maintain it successfully. We plan to ditch it in several years, but that won't be soon. |
b43e121 to
25e7600
Compare
* GCC diagnostic push was added in GCC 4.6. * This warning is only enabled in >=4.8 (-Wformat=2).
I can understand your point of view. I do not see us supporting such old toolchains for free. Do you want to talk about commercial support for this? |
- tool_getparam: revert an unnecessary/no-op C89 warning silencer. Follow-up to 09c9afd #20363 - tool_writeout: add comment saying silencing is a no-op for llvm/clang. For `strftime()` it is a GCC-specific, as of llvm/clang v22.1.0. Follow-up to f07a98a #20366 - unit1652: drop always-false `!defined(__clang__)` guard. Pointed-out-by: Orgad Shaneh Ref: #20902 Follow-up to 7e814c8 #16062 - unit1652: document that `-Wformat` is necessary for GCC v5 to v8. Follow-up to 71cf0d1 #14772 Closes #20908
- tool_getparam: revert an unnecessary/no-op C89 warning silencer. Follow-up to 09c9afd curl#20363 - tool_writeout: add comment saying silencing is a no-op for llvm/clang. For `strftime()` it is a GCC-specific, as of llvm/clang v22.1.0. Follow-up to f07a98a curl#20366 - unit1652: drop always-false `!defined(__clang__)` guard. Pointed-out-by: Orgad Shaneh Ref: curl#20902 Follow-up to 7e814c8 curl#16062 - unit1652: document that `-Wformat` is necessary for GCC v5 to v8. Follow-up to 71cf0d1 curl#14772 Closes curl#20908
…warnings Extend `#pragma diagnostic push`/`pop` guards to the whole codebase (from tests and examples only) to disable it for GCC <4.6. Rename guard to `CURL_HAVE_DIAG` and make it include llvm/clang to be interchangeable with `__GNUC__ || __clang__` in this context. The above means no longer disabling certain warnings locally, so pair this with disabling all picky warnings for GCC <4.6. Also: - drop global workarounds for misbehaving GCC <4.6 compiler warnings. Not needed with picky warnings disabled. Reported-by: fds242 on github Reported-by: Sergey Fedorov Thanks-to: Orgad Shaneh Follow-up to f07a98a curl#20366 Fixes curl#20892 Fixes curl#20924 Closes curl#20902 Closes curl#20907
error: pragma.... is not supported inside function