bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH gnumach] Disable specific warnings that are now errors in GCC 14


From: Flavio Cruz
Subject: [PATCH gnumach] Disable specific warnings that are now errors in GCC 14
Date: Mon, 24 Jun 2024 21:57:01 +0100

---
 linux/Makefrag.am | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/linux/Makefrag.am b/linux/Makefrag.am
index 2338452..2af513b 100644
--- a/linux/Makefrag.am
+++ b/linux/Makefrag.am
@@ -37,9 +37,15 @@ liblinux_a_CPPFLAGS = $(AM_CPPFLAGS) \
 # corresponding text segment definitions, we must always optimize.
 liblinux_a_CFLAGS = -O2 $(AM_CFLAGS)
 
+# Newer compilers (GCC >= 14) have turned on specific warnings as errors,
+# disable that here.
+DISABLED_ERRORS = -Wno-error=incompatible-pointer-types \
+       -Wno-error=implicit-function-declaration \
+       -Wno-error=int-conversion
 # Disable warnings that are applied to the core Mach code.
 liblinux_a_CFLAGS += -Wno-missing-prototypes -Wno-strict-prototypes \
-       -Wno-old-style-definition
+       -Wno-old-style-definition \
+       $(DISABLED_ERRORS)
 
 # See <http://lists.gnu.org/archive/html/bug-hurd/2006-01/msg00148.html>.
 liblinux_a_CFLAGS += \
-- 
2.45.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]