Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@bagder
Copy link
Member

@bagder bagder commented Oct 14, 2020

With GCC 10 (at least) on mingw, we get false positive warnings
when using this option. Never use it for mingw.

Fixes #6079

@bagder bagder added the build label Oct 14, 2020
@MarcelRaad
Copy link
Member

As this is a bug specific to GCC 10, I'd rather at least leave it on on older versions, wouldn't you?
Also, for the record, an alternative would be to disable -pedantic as the -Wpedantic-ms-format warning is a combination of those two.

@MarcelRaad
Copy link
Member

Or can we maybe do that only for that one file where the specific warning cannot be disabled?

@bagder
Copy link
Member Author

bagder commented Oct 15, 2020

Let me try that...

With GCC 10 (at least) on mingw, we get false positive warnings
when using this option. Never use it for mingw.

Fixes #6079
@bagder bagder force-pushed the bagder/configure-format-mingw branch from 462b357 to e2af803 Compare October 15, 2020 08:17
@bagder
Copy link
Member Author

bagder commented Oct 15, 2020

Seems to work. Now we're back to our regular set of flaky test results... 😞

@bagder bagder closed this in 7c88fe3 Oct 15, 2020
@mback2k
Copy link
Member

mback2k commented Oct 15, 2020

Seems to work.

Great!

Now we're back to our regular set of flaky test results... 😞

Which I am hardly trying to solve... πŸ§‘β€πŸ­

@bagder bagder deleted the bagder/configure-format-mingw branch December 22, 2020 12:53
mback2k added a commit to mback2k/curl that referenced this pull request Dec 13, 2021
Some CIs already build them, let's do it on more of them.

Ignore -Wformat while using GCC on mingw to compile examples.
Improve size_t to long conversion in imap-append.c example.

Ref: curl#6079
Ref: curl#6082
Assisted-by: Jay Satiro

Follow up to curl#7690
Replaces curl#7591
Closes curl#7922
mback2k added a commit that referenced this pull request Dec 14, 2021
Avoid CURL_FORMAT_CURL_OFF_T by using unsigned long instead.
Improve size_t to long conversion in imap-append.c example.

Ref: #6079
Ref: #6082
Assisted-by: Jay Satiro
Reviewed-by: Daniel Stenberg

Preparation of #7922
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.

Azure DevOps shows GCC 10 compilation errors due to type mismatch between curl_off_t typeof and format

3 participants