-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
system.h: fix mismatch between curl_off_t typeof and format #5891
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
Conversation
|
I find this curious. These have been like this for a very long time in the curl headers. Were they always wrong or did something change? |
|
I have seen them since initially creating my buildbots years ago. I just never spend the time to figure out where this came from before. I am also not sure if this fix works for old MinGW versions. |
|
Seems like my local environment and the Windows CI are out of sync. I guess this warning showing up in my local builds, but this PR breaking the Windows CI is related to different GCC versions. Back to draft, have to investigate this first. |
Looks like gcc. The Windows CRT supported |
|
I think I've had this since my MinGW-w64 updated to GCC 10. But only in this one place. All other similar occurrences don't result in this warning - which is suppressed anyway with |
|
Okay, so this is a new warning then. I still think I have seen similar warnings all the time with my old (no longer existing and migrated to Azure) Windows buildbot infrastructure. So it seems like changing the defines as proposed with this PR is not a good idea without checking the compiler version somehow, right? I will try to update the PR to reflect that. |
Fixes warning: ISO C does not support the 'I' printf flag which is raised starting with GCC 10 for tool_filetime.c. Assisted-by: Jay Satiro Assisted-by: Marcel Raad Closes curl#5891
a521e06 to
64f3f8b
Compare
It's not the compiler version that's the issue. If you build curl with mingw it will run using the default CRT which may not support %lld. I'd rather just silence the warning. |
The problem is that the warning actually is disabled (with |
The error only appears for lines 125 and 133 where another format specifier |
|
Does anybody else have an idea on how to fix this? I guess my approach was invalid and I have no other idea at the moment. |
|
If Marcel is right and it is a gcc bug showing you a warning that you've disabled then it's not a curl problem. |
|
Closing this as this approach led to nothing useful... |
This removes the following compiler warnings: