diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2018-09-01 12:39:23 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2018-09-01 12:39:23 +0000 |
commit | 9dbf4a13a15133cfc7966a6794ff36b4c61decf4 (patch) | |
tree | def6cd802cc8ba0ba822171950b88983f96e1483 /devel/boost-python-libs | |
parent | net-mgmt/arts++: Fix build with Clang 6 (diff) |
devel/boost-python-libs: unbreak in C++17 mode
In file included from libs/python/src/converter/from_python.cpp:6:
In file included from ./boost/python/converter/from_python.hpp:8:
In file included from ./boost/python/detail/prefix.hpp:13:
In file included from ./boost/python/detail/wrap_python.hpp:151:
In file included from /usr/local/include/python2.7/Python.h:88:
/usr/local/include/python2.7/unicodeobject.h:534:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
register PyObject *obj, /* Object */
^~~~~~~~~
/usr/local/include/python2.7/unicodeobject.h:553:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
register PyObject *obj /* Object */
^~~~~~~~~
/usr/local/include/python2.7/unicodeobject.h:575:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
register const wchar_t *w, /* wchar_t buffer */
^~~~~~~~~
/usr/local/include/python2.7/unicodeobject.h:593:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
register wchar_t *w, /* wchar_t buffer */
^~~~~~~~~
Notes
Notes:
svn path=/head/; revision=478679
Diffstat (limited to 'devel/boost-python-libs')
-rw-r--r-- | devel/boost-python-libs/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/devel/boost-python-libs/Makefile b/devel/boost-python-libs/Makefile index 2790ffa30cbc..bc8687e3baa2 100644 --- a/devel/boost-python-libs/Makefile +++ b/devel/boost-python-libs/Makefile @@ -8,6 +8,10 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} USES= python USE_PYTHON= flavors +# Ignore -Wregister warnings in Python.h +CFLAGS+= ${${PY_FLAVOR}_CFLAGS} +py27_CFLAGS= -isystem ${PYTHON_INCLUDEDIR} + OPTIONS_DEFINE= DEBUG OPTIMIZED_CFLAGS .include "${.CURDIR}/../boost-all/common.mk" |