]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Darwin warnings: add options to turn off warnings from system headers
authorPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 10 Dec 2025 12:35:49 +0000 (13:35 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 10 Dec 2025 12:35:49 +0000 (13:35 +0100)
Darwin 18 / clang 11 are quite noisy with nullability and expansion
to defined warnings in the system headers.

Makefile.all.am
configure.ac

index df78960167744859e9667b78e1789d84613ce799..154585dce3cb5abcf0112bfd195dbe506b9e4323 100644 (file)
@@ -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 \
index 40330fdc312111486831a0adc113677457676958..5deb338fa381ff5806ce95c365a2ec856e8850ea 100644 (file)
@@ -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])