Subject: [Boost-bugs] [Boost C++ Libraries] #7218: Regression from Changeset 79895: new calls to madvise() need to cast as necessary to caddr_t
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-08-09 18:41:18
#7218: Regression from Changeset 79895: new calls to madvise() need to cast as
necessary to caddr_t
---------------------------------------------+------------------------------
Reporter: Hubert Tong <hstong@â¦> | Owner: igaztanaga
Type: Bugs | Status: new
Milestone: To Be Determined | Component: interprocess
Version: Boost Development Trunk | Severity: Regression
Keywords: |
---------------------------------------------+------------------------------
On the AIX tester we see:
{{{
"../boost/interprocess/mapped_region.hpp", line 762.52: 1540-0256 (S) A
parameter of type "char *" cannot be initialized with an expression of
type "void *".
"../boost/interprocess/mapped_region.hpp", line 762.52: 1540-1205 (I) The
error occurred while converting to parameter 1 of "madvise(caddr_t,
size_t, int)".
}}}
The call in question to `madvise()` is indeed invalid.
The signature for `madvise()` on the AIX platform uses `caddr_t` (a
typedef to `char *`) as the type of the first parameter.
A search seems to indicate that Solaris and HP-UX also use `caddr_t`.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7218> 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:10 UTC