Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Sep 2018 12:39:23 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r478679 - head/devel/boost-python-libs
Message-ID:  <201809011239.w81CdN2E020942@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Sat Sep  1 12:39:23 2018
New Revision: 478679
URL: https://svnweb.freebsd.org/changeset/ports/478679

Log:
  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 */
      ^~~~~~~~~

Modified:
  head/devel/boost-python-libs/Makefile   (contents, props changed)

Modified: head/devel/boost-python-libs/Makefile
==============================================================================
--- head/devel/boost-python-libs/Makefile	Sat Sep  1 12:32:24 2018	(r478678)
+++ head/devel/boost-python-libs/Makefile	Sat Sep  1 12:39:23 2018	(r478679)
@@ -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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809011239.w81CdN2E020942>