[PATCH] wininet: Fix an MSVC warning about status_string.

Serge Gautherie winehq-git_serge_180711 at gautherie.fr
Wed Jul 18 12:30:59 CDT 2018


On 18/07/2018 17:59, Alexandre Julliard wrote:

> Serge Gautherie<winehq-git_serge_180711 at gautherie.fr>  writes:
>
>> Signed-off-by: Serge Gautherie<winehq-git_serge_180711 at gautherie.fr>
>> ---
>> "...\http.c(...) : warning C4090: 'function' : different 'const' qualifiers"
>
> This doesn't look like something that should trigger a warning.

That is what I thought too, at first.
Nonetheless, I assume it makes sense, from a strict point of view:
the function expects an "I can do whatever I want" pointer type,
but it is passed a "never modify the final data" pointer type,
as in "const void * != void *".

ReactOS build reports 27 C4090 warnings.
Though I couldn't find a detailed explanation about it,
I had a quick look at a few cases (yet),
and it would seem to be just the kind of cases this warning is about,
as in "let people double-check" :-|

See https://bugs.winehq.org/show_bug.cgi?id=45472 for another case.

-- 



More information about the wine-devel mailing list