|
From: Paul F. <pa...@so...> - 2025-12-10 12:37:50
|
https://sourceware.org/cgit/valgrind/commit/?id=8b901a6ca28b80e5ebaef33bc36f95163ae58dc1 commit 8b901a6ca28b80e5ebaef33bc36f95163ae58dc1 Author: Paul Floyd <pj...@wa...> Date: Wed Dec 10 13:35:49 2025 +0100 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: --- Makefile.all.am | 1 + configure.ac | 1 + 2 files changed, 2 insertions(+) diff --git a/Makefile.all.am b/Makefile.all.am index df78960167..154585dce3 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 40330fdc31..5deb338fa3 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]) |