Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jun 2023 22:44:47 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: b44cb8fae396 - main - math/wfmath: fix build with llvm 16
Message-ID:  <202306292244.35TMilBN015257@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b44cb8fae39643f9b876b4896021cad23dbd1acf

commit b44cb8fae39643f9b876b4896021cad23dbd1acf
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-06-29 22:43:17 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-06-29 22:44:47 +0000

    math/wfmath: fix build with llvm 16
    
    ./MersenneTwister.h:211:2: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
            register uint32 s1;
            ^~~~~~~~~
---
 math/wfmath/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/math/wfmath/Makefile b/math/wfmath/Makefile
index f5ec3ddc8966..31ec520aaa6e 100644
--- a/math/wfmath/Makefile
+++ b/math/wfmath/Makefile
@@ -12,4 +12,6 @@ USES=		libtool pathfix pkgconfig compiler:c++11-lib
 USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
 
+CXXFLAGS+=	-Dregister=
+
 .include <bsd.port.mk>



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