PDA

View Full Version : Warning: swp{b} in armabi-v7a android and solve it



feelthat
05-28-2013, 05:42 AM
when cross compile
Compile++ arm : rt3dapp <= RenderScissorComponent.cpp
/tmp/ccXc2mtJ.s:4245: Warning: swp{b} use is deprecated for this architecture


in this to solve it
http://code.google.com/p/android/issues/detail?id=53308

FYI - I've run into this issue when using smart_ptrs from Boost 1.49.
A description and patch is available here:
Applying the patch got rid of these warnings in my project.
https://svn.boost.org/trac/boost/ticket/5331

one file copy and paste
https://github.com/rtsuk/liaw2013/blob/master/boost_1_53_0/boost/smart_ptr/detail/spinlock_gcc_arm.hpp