git: 330d692763c1 - main - lang/gnat15: remove -Werror

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Sun, 28 Jun 2026 17:34:46 UTC
The branch main has been updated by thierry:

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

commit 330d692763c153ebdd758bb23c5f995577518b37
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2026-06-28 17:30:07 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2026-06-28 17:34:43 +0000

    lang/gnat15: remove -Werror
    
    Compilation fails on arm64 because
    enable-execute-stack.c:33:13: error: 'check_enabling' declared 'static' but never defined [-Werror=unused-function]
       33 | static void check_enabling (void) __attribute__ ((unused));
          |             ^~~~~~~~~~~~~~
    cc1: all warnings being treated as errors
    
    PR:             292708
    Reported by:    pkg-fallout
---
 lang/gnat15/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lang/gnat15/Makefile b/lang/gnat15/Makefile
index e73c1898e369..d4595506704b 100644
--- a/lang/gnat15/Makefile
+++ b/lang/gnat15/Makefile
@@ -153,6 +153,9 @@ PLIST_SUB+=	ARM="@comment " \
 pre-configure:
 	${FIND} ${WRKSRC}/gcc/config -name "*freebsd.h" -o -name "*freebsd64.h" | \
 		${XARGS} ${REINPLACE_CMD} -e 's|!static:[[:blank:]]|!static: --hash-style=gnu -rpath ${PREFIX}/gnat${_GCC_VER}/lib |'
+.for f in libgcc/config/aarch64/t-aarch64 libgcc/configure
+	${REINPLACE_CMD} -e 's|-Werror||' ${WRKSRC}/${f}
+.endfor
 	${ECHO} "-=> GNAT ${_OS_LABEL4VERS}" > ${_REV_FILE}
 	${ECHO} "release" > ${_PHASE_FILE}