Opened 9 years ago

Closed 9 years ago

#9835 closed Bugs (fixed)

Boost Interprocess fails to compile with Android NDK GCC 4.8 "-Werror=unused-variable"

Reported by: drivehappy@… Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: interprocess
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description

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.

Change History (1)

comment:1 by Ion Gaztañaga, 9 years ago

Resolution: fixed
Status: newclosed

Thanks for the report. Fixed in:

[develop 65b5d34] Fixes #9835, typos and MSVC version offset_ptr branchless optimization fix.

5 files changed, 8 insertions(+), 10 deletions(-)

Note: See TracTickets for help on using tickets.