Subject: [Boost-bugs] [Boost C++ Libraries] #9835: Boost Interprocess fails to compile with Android NDK GCC 4.8 "-Werror=unused-variable"
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-04-04 17:14:04
#9835: Boost Interprocess fails to compile with Android NDK GCC 4.8 "-Werror
=unused-variable"
------------------------------+--------------------------
Reporter: drivehappy@⦠| Owner: igaztanaga
Type: Bugs | Status: new
Milestone: To Be Determined | Component: interprocess
Version: Boost 1.55.0 | Severity: Problem
Keywords: |
------------------------------+--------------------------
Building with the arm-linux-androideabi gcc 4.8 toolchain and -Wall the
following error occurs for boost 1.55.0:
{{{
/~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;
}}}
^
The following #include reproduces the problem:
{{{
#include <boost/interprocess/mapped_region.hpp>
int main() {
return 0;
}
}}}
Built with: /opt/android/bin/arm-linux-androideabi-g++ -Werror=unused-
variable main.cpp
Note: This was after applying the patch for #9408 for Android and
XSI_SHARED_MEMORY_OBJECTS.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9835> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:15 UTC