git: 16c76a4ce238 - main - net/l2tpd: Fix build with GCC 14

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

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

commit 16c76a4ce238f99fe8839bb5e82f41bbbbaf520b
Author:     Lorenzo Salvadore <salvadore@FreeBSD.org>
AuthorDate: 2024-09-05 14:39:05 +0000
Commit:     Lorenzo Salvadore <salvadore@FreeBSD.org>
CommitDate: 2024-09-05 15:08:27 +0000

    net/l2tpd: Fix build with GCC 14
    
    GCC 14 has transformed some warnings into errors: revert them to simple
    warnings.
    
    PR:             281243
    Reported by:    exp-run (antoine)
---
 net/l2tpd/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net/l2tpd/Makefile b/net/l2tpd/Makefile
index 8a8160b2454b..302b44c30586 100644
--- a/net/l2tpd/Makefile
+++ b/net/l2tpd/Makefile
@@ -11,7 +11,8 @@ BROKEN_armv6=	fails to link: undefined reference to check_control
 BROKEN_armv7=	fails to link: undefined reference to check_control
 
 USES=		compiler:nestedfct cpe
-CFLAGS+=	-fcommon
+CFLAGS+=	-fcommon \
+		-fpermissive
 
 PORTDOCS=	README
 ETCDIR=		${PREFIX}/etc/l2tp