Boost C++ Libraries: Ticket #9835: Boost Interprocess fails to compile with Android NDK GCC 4.8 "-Werror=unused-variable" https://svn.boost.org/trac10/ticket/9835 <p> Building with the arm-linux-androideabi gcc 4.8 toolchain and -Wall the following error occurs for boost 1.55.0: </p> <pre class="wiki">/~snip~/boost/interprocess/mapped_region.hpp: In member function 'bool boost::interprocess::mapped_region::advise(boost::interprocess::mapped_region::advice_types)': /~snip~/boost/interprocess/mapped_region.hpp:742:23: error: unused variable 'mode_padv' [-Werror=unused-variable] const unsigned int mode_padv = 1; </pre><blockquote> <p> <sup> </sup></p> </blockquote> <p> The following #include reproduces the problem: </p> <pre class="wiki">#include &lt;boost/interprocess/mapped_region.hpp&gt; int main() { return 0; } </pre><p> Built with: /opt/android/bin/arm-linux-androideabi-g++ -Werror=unused-variable main.cpp </p> <p> Note: This was after applying the patch for <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9408" title="#9408: Bugs: Android does not support XSI_SHARED_MEMORY_OBJECTS (closed: fixed)">#9408</a> for Android and XSI_SHARED_MEMORY_OBJECTS. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9835 Trac 1.4.3 Ion Gaztañaga Tue, 08 Apr 2014 04:54:48 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/9835#comment:1 https://svn.boost.org/trac10/ticket/9835#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Thanks for the report. Fixed in: </p> <p> [develop 65b5d34] Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9835" title="#9835: Bugs: Boost Interprocess fails to compile with Android NDK GCC 4.8 ... (closed: fixed)">#9835</a>, typos and MSVC version offset_ptr branchless optimization fix. </p> <blockquote> <p> 5 files changed, 8 insertions(+), 10 deletions(-) </p> </blockquote> Ticket