git: 85f7ee26d684 - main - cad/alliance: Fix build with GCC 14

From: Lorenzo Salvadore <salvadore_at_FreeBSD.org>
Date: Thu, 05 Sep 2024 09:48:54 UTC
The branch main has been updated by salvadore:

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

commit 85f7ee26d6846d73be6e2fc3c5be50f98f609b40
Author:     Lorenzo Salvadore <salvadore@FreeBSD.org>
AuthorDate: 2024-09-04 09:53:17 +0000
Commit:     Lorenzo Salvadore <salvadore@FreeBSD.org>
CommitDate: 2024-09-05 09:48:38 +0000

    cad/alliance: Fix build with GCC 14
    
    GCC 14 has transformed some warnings into errors: revert them to simple
    warnings.
    
    PR:             281223
    Reported by:    exp-run (antoine)
---
 cad/alliance/Makefile                        |  3 ++-
 cad/alliance/files/patch-scr_src_Makefile.am | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/cad/alliance/Makefile b/cad/alliance/Makefile
index c6f8ae181c25..f32bc7b891f1 100644
--- a/cad/alliance/Makefile
+++ b/cad/alliance/Makefile
@@ -36,7 +36,8 @@ USE_LDCONFIG=	${ALLIANCE_TOP}/lib
 
 MAKE_JOBS_UNSAFE=	yes
 INSTALL_TARGET=	install-strip
-CFLAGS+=	-fcommon
+CFLAGS+=	-fcommon \
+		-fpermissive
 
 CONFLICTS_INSTALL=	ocp publib
 
diff --git a/cad/alliance/files/patch-scr_src_Makefile.am b/cad/alliance/files/patch-scr_src_Makefile.am
new file mode 100644
index 000000000000..c620e4747b45
--- /dev/null
+++ b/cad/alliance/files/patch-scr_src_Makefile.am
@@ -0,0 +1,11 @@
+--- scr/src/Makefile.am.orig	2024-09-05 09:01:44 UTC
++++ scr/src/Makefile.am
+@@ -3,7 +3,7 @@ AM_YFLAGS        = -d
+ AM_YFLAGS        = -d
+ 
+ #CFLAGS          = -g -pg -O2
+-CFLAGS           = -g -O2
++CFLAGS           = -g -O2 -fpermissive
+ #CFLAGS          = -O2
+ AM_CFLAGS        = @ALLIANCE_CFLAGS@ \
+                    -I$(top_srcdir)/mbk/src \