Patches for two separate sources of warnings. Also for a fatal link
error for the debug binaries produced by the VC 2003 Toolkit.

1. The recent change that I introduced to Make_mvc.mak to turn on
/Wp64 on the 32-bit compilers triggered a bunch of warnings. (I'm
surprised no-one complained.) The __w64 change that I added to vim.h
take care of 99% of these. In short, /Wp64 will warn you if you make
dodgy casts that are likely to fail if you were using the 64-bit
compiler. The __w64 attribute marks a numeric type as one that will be
widened appropriately for Win64, placating /Wp64; in Vim's case,
that's long_u and long_i. On any compiler but MSVC 7.x, 8.0, or 9.0,
__w64 is an empty token.

2. VS2008 has a pile of warnings about unused parameters in
GvimExt.cpp. The offending functions are COM interface method
implementations, so their signatures cannot be changed.

3. _get_fmode is not defined in VC2003 -- though I could have sworn it
was. It seems to have been introduced in VC2005. I guess you don't
build the debug binaries often.

I've checked the patch with VS98, VS2003, VC 2003 Toolkit, VS2005, and
VS2008 (x86 and x64). VS98 knows nothing about /Wp64 or __w64.
-- 
/George V. Reilly [EMAIL PROTECTED]
http://www.georgevreilly.com/blog http://blogs.cozi.com/tech

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Attachment: w64.diff
Description: Binary data

Raspunde prin e-mail lui