git: b44cb8fae396 - main - math/wfmath: fix build with llvm 16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 29 Jun 2023 22:44:47 UTC
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>