[PATCH] setup: avoid linker warnings on Windows about multiple export specifications

Matt Harbison mharbison72 at gmail.com
Sat Jun 10 01:51:26 EDT 2017


On Sat, 10 Jun 2017 01:43:00 -0400, Matt Harbison <mharbison72 at gmail.com>  
wrote:

> # HG changeset patch
> # User Matt Harbison <matt_harbison at yahoo.com>
> # Date 1497060953 14400
> #      Fri Jun 09 22:15:53 2017 -0400
> # Node ID b8fb7b6aee991827664f15ae5fe1c7064ce883d6
> # Parent  776d077eb4ef815e08631fb1e7b33375adca3ef1
> setup: avoid linker warnings on Windows about multiple export  
> specifications

The remaining warnings are:

mercurial/cext/revlog.c(282) : warning C4244: '+=' : conversion from  
'Py_ssize_t' to 'int', possible loss of data
mercurial/cext/revlog.c(317) : warning C4090: 'function' : different  
'const' qualifiers
mercurial/cext/revlog.c(452) : warning C4244: '=' : conversion from  
'Py_ssize_t' to 'char', possible loss of data
mercurial/cext/revlog.c(604) : warning C4244: 'function' : conversion from  
'Py_ssize_t' to 'long', possible loss of data
mercurial/cext/revlog.c(697) : warning C4244: 'function' : conversion from  
'Py_ssize_t' to 'long', possible loss of data

I don't see them on either Linux or Mac.

It seems like distutils redirects the compiler's stderr to stdout.  Is  
there any easy way to convince it not to?  They would be easier to spot  
then with `make local > /dev/null`, but I suppose grep works too.


More information about the Mercurial-devel mailing list