From 6e092540d50dc2137d5d5e886c80e4895568fba4 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Mon, 24 Jun 2024 21:57:01 +0100 Subject: Disable specific warnings that are now errors in GCC 14 Message-ID: <376mwj4qtzxqgg2p4teqefxep7qz2kxll25synb3sulgof24j5@wxhqtaf7ei32> --- linux/Makefrag.am | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/linux/Makefrag.am b/linux/Makefrag.am index 23384523..2af513b9 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 . liblinux_a_CFLAGS += \ -- cgit v1.2.3