git: c02a097a99b7 - 2023Q3 - devel/gwenhywfar-fox16: Fix build with llvm16

From: Jason E. Hale <jhale_at_FreeBSD.org>
Date: Sun, 02 Jul 2023 17:25:52 UTC
The branch 2023Q3 has been updated by jhale:

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

commit c02a097a99b7d63739ee7349148cb48770f66c68
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2023-07-02 17:13:10 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2023-07-02 17:25:25 +0000

    devel/gwenhywfar-fox16: Fix build with llvm16
    
    theme.cpp:20:3: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
      register FXint rr,gg,bb,dr,dg,db,r1,g1,b1,r2,g2,b2,yl,yh,yy,dy,n,t;
    
    Reported by:    pkg-fallout
    MFH:            2023Q3
    
    (cherry picked from commit 2617740e97b47aac9e57bf4c3bd738868fbcff6a)
---
 devel/gwenhywfar/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/devel/gwenhywfar/Makefile b/devel/gwenhywfar/Makefile
index dff490879abb..49219bda5d38 100644
--- a/devel/gwenhywfar/Makefile
+++ b/devel/gwenhywfar/Makefile
@@ -64,6 +64,7 @@ INSTALL_WRKSRC=	${WRKSRC}/gui/${SLAVEPORT}
 LIB_DEPENDS+=	libFOX-1.6.so:x11-toolkits/fox16
 CONFIGURE_ARGS+=--with-fox-includes=${LOCALBASE}/include/fox-1.6 \
 		--with-fox-libs=${LOCALBASE}/lib
+CXXFLAGS+=	-Dregister=
 .  elif ${SLAVEPORT}=="gtk2"
 LIB_DEPENDS+=	libfreetype.so:print/freetype2 \
 		libharfbuzz.so:print/harfbuzz \