Compiler warnings for Windows x64

Adrian Buehlmann adrian at cadifra.com
Thu Jul 19 02:21:50 CDT 2012


Just FYI.

These are the compiler warnings left with a06e2681dd17 (I cleared some of these up
in the past) when building with the Microsoft C compiler for x64 Windows:

C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python\include -Ic:\Python\PC /Tc mercurial/parsers.c /Fobuild\temp.win-amd64-2.7\Release\mercurial/parsers.obj parsers.c
mercurial/parsers.c(95) : warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data
mercurial/parsers.c(592) : warning C4244: '+=' : conversion from 'Py_ssize_t' to 'long', possible loss of data
mercurial/parsers.c(633) : warning C4090: 'function' : different 'const' qualifiers
mercurial/parsers.c(775) : warning C4244: 'function' : conversion from 'Py_ssize_t' to 'long', possible loss of data
mercurial/parsers.c(915) : warning C4244: '=' : conversion from 'Py_ssize_t' to 'int', possible loss of data
mercurial/parsers.c(1317) : warning C4244: 'return' : conversion from 'Py_ssize_t' to 'long', possible loss of data
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:c:\Python\libs /LIBPATH:c:\Python\P
Cbuild\amd64 /EXPORT:initparsers build\temp.win-amd64-2.7\Release\mercurial/parsers.obj /OUT:C:\Users\adi\hgrepos\hg-main\mercurial\parsers.pyd /I
MPLIB:build\temp.win-amd64-2.7\Release\mercurial\parsers.lib /MANIFESTFILE:build\temp.win-amd64-2.7\Release\mercurial\parsers.pyd.manifest
parsers.obj : warning LNK4197: export 'initparsers' specified multiple times; using first specification


Note that C's "long" type is 32 bits on x64 Windows (it's 64 bits on x64 Linux).



More information about the Mercurial-devel mailing list