Skip to content

schannel: fix compiler warning#3435

Closed
MarcelRaad wants to merge 1 commit intocurl:masterfrom
MarcelRaad:schannel_compiler_warning
Closed

schannel: fix compiler warning#3435
MarcelRaad wants to merge 1 commit intocurl:masterfrom
MarcelRaad:schannel_compiler_warning

Conversation

@MarcelRaad
Copy link
Member

When building with Unicode on MSVC, the compiler warns about freeing a
pointer to const in Curl_unicodefree. Fix this by declaring it as
non-const and casting the argument to Curl_convert_UTF8_to_tchar to
non-const too, like we do in all other places.

When building with Unicode on MSVC, the compiler warns about freeing a
pointer to const in Curl_unicodefree. Fix this by declaring it as
non-const and casting the argument to Curl_convert_UTF8_to_tchar to
non-const too, like we do in all other places.
Copy link
Member

@bagder bagder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine, apart from the missing updated copyright year range that travis found! =)

@MarcelRaad
Copy link
Member Author

Thanks! I still have to get used to that.

@MarcelRaad MarcelRaad closed this in e939afe Jan 6, 2019
@MarcelRaad MarcelRaad deleted the schannel_compiler_warning branch January 6, 2019 22:11
@lock lock bot locked as resolved and limited conversation to collaborators Apr 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments