From b44cb8fae39643f9b876b4896021cad23dbd1acf Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Fri, 30 Jun 2023 00:43:17 +0200 Subject: [PATCH] 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