From: Paul Floyd Date: Wed, 10 Dec 2025 12:35:49 +0000 (+0100) Subject: Darwin warnings: add options to turn off warnings from system headers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b901a6ca28b80e5ebaef33bc36f95163ae58dc1;p=thirdparty%2Fvalgrind.git Darwin warnings: add options to turn off warnings from system headers Darwin 18 / clang 11 are quite noisy with nullability and expansion to defined warnings in the system headers. --- diff --git a/Makefile.all.am b/Makefile.all.am index df7896016..154585dce 100644 --- a/Makefile.all.am +++ b/Makefile.all.am @@ -151,6 +151,7 @@ if VGCONF_OS_IS_DARWIN AM_CFLAGS_PSO_BASE = -dynamic \ -O -g -fno-omit-frame-pointer -fno-strict-aliasing \ -fpic -fPIC -fno-builtin @FLAG_FNO_IPA_ICF@ +AM_CFLAGS_BASE += @FLAG_W_NO_EXPANSION_TO_DEFINED@ @FLAG_W_NO_NULLABILITY_COMPLETENESS@ else if VGCONF_OS_IS_FREEBSD AM_CFLAGS_PSO_BASE = -O -g -fno-omit-frame-pointer -fno-strict-aliasing \ diff --git a/configure.ac b/configure.ac index 40330fdc3..5deb338fa 100644 --- a/configure.ac +++ b/configure.ac @@ -2749,6 +2749,7 @@ AC_GCC_WARNING_SUBST_NO([deprecated], [FLAG_W_NO_DEPRECATED]) # OK for 32 and 64 bit AC_GCC_WARNING_SUBST_NO([alloc-size], [FLAG_W_NO_ALLOC_SIZE]) AC_GCC_WARNING_SUBST_NO([deprecated-declarations], [FLAG_W_NO_DEPRECATED_DECLARATIONS]) +AC_GCC_WARNING_SUBST_NO([nullability-completeness], [FLAG_W_NO_NULLABILITY_COMPLETENESS]) AC_GCC_WARNING_SUBST([write-strings], [FLAG_W_WRITE_STRINGS]) AC_GCC_WARNING_SUBST([empty-body], [FLAG_W_EMPTY_BODY])