On 18/07/2018 17:59, Alexandre Julliard wrote:
Serge Gautheriewinehq-git_serge_180711@gautherie.fr writes:
Signed-off-by: Serge Gautheriewinehq-git_serge_180711@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.