mirror of https://github.com/c-ares/c-ares.git
Fix warnings emitted by MSVC when using -W4 (#192)
These changes fix a few warnings emitted by recent versions of MSVC when compiling with -W4. Half of the changes are in Windows-specific code, and the other half should be safe no matter the compiler or OS. The allocation function change is probably the only one that needs explanation. MSVC gives warnings about the function pointers not being stable across DLL boundaries or something to that effect, so for Windows, I've made them be called indirectly, which at least made the compiler happy. I can't say I've tested every linking combination on Windows with them before or after the change, but it seems harmless. Fix By: Brad Spencer @b-spencer PR: https://github.com/c-ares/c-ares/pull/192pull/195/head
parent
078e1dc4e3
commit
c18f512d17
3 changed files with 21 additions and 11 deletions
Loading…
Reference in new issue