Bug#650246: swig: compile warnings in C++ wrappers for Python

2011-11-28 Thread Olly Betts
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 (cha

Bug#650246: swig: compile warnings in C++ wrappers for Python

2011-11-27 Thread Olly Betts
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(X) should > silence most of them. The 'format no