when compling pybox2d in Mac OS X 10.9 with clang, I get many, many warnings
like
Box2D/Box2D_wrap.cpp:19157:92: warning: format specifies type 'int' but the
argument has type 'Py_ssize_t' (aka 'long') [-Wformat]
...or list of length 2, got length %d", PySequence_Size(swig_obj[1]));
~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
%ld
It looks like on gcc it's even worse because, I guess of in-lining, the error
gets emitted from any function that accepts a b2Vec2.
I think the patch included, applied to /Box2D/Box2D_typemaps.i, should remove
the warnings. The cast to (long) is because Py_ssize_t is "int", I think, on
32-bit platforms.
Original issue reported on code.google.com by Gustavo....@gmail.com on 15 Jan 2015 at 3:27
Original issue reported on code.google.com by
Gustavo....@gmail.com
on 15 Jan 2015 at 3:27Attachments: