On Mon, Nov 28, 2011 at 08:33:57PM +1300, Olly Betts wrote:
> On Thu, Aug 09, 2007 at 02:04:12AM +0930, Ron wrote:
> > Compiling swig wrappers with my usual list of warnings enabled makes a
> > bit of noise that should be fairly easy to fix.  Changing the C casts
> > that remove constness from (char*)X to const_cast<char*>(X) should
> > silence most of them.  The 'format not a string literal and no format
> > arguments' ones mean something like printf(string_variable) should be
> > replaced with printf("%s", string_variable) instead.
> 
> I've already fixed the format string warnings upstream (back in 2008):
> 
> https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1882220&group_id=1645
> 
> There are still some cast and unused parameter warnings though.

As with Perl, several of the casts aren't required and can just be removed;
some can also be made conditional on the Python version.  I've fixed the easy
ones upstream in r12852 (which should be in 2.0.5 when it is released), though
a few cast warnings still remain.

Cheers,
    Olly



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to