From cd25dc4e6a62756a896b8f37233c0686b4704bb7 Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Wed, 23 Jun 2021 15:56:00 +0200 Subject: [PATCH] =?UTF-8?q?dde=5Fbsd:=20prevent=20=E2=80=98nonnull?= =?UTF-8?q?=E2=80=99=20argument=20warning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The implementation conflicted with the implicit declaration of bzero: .../repos/dde_bsd/src/lib/audio/mem.cc: In function ‘void bzero(void*, size_t)’: .../repos/dde_bsd/src/lib/audio/mem.cc:377:2: warning: ‘nonnull’ argument ‘b’ compared to NULL [-Wnonnull-compare] --- repos/dde_bsd/lib/mk/dde_bsd_audio.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repos/dde_bsd/lib/mk/dde_bsd_audio.inc b/repos/dde_bsd/lib/mk/dde_bsd_audio.inc index c8d05a9fe4..2bb34dc03c 100644 --- a/repos/dde_bsd/lib/mk/dde_bsd_audio.inc +++ b/repos/dde_bsd/lib/mk/dde_bsd_audio.inc @@ -21,7 +21,8 @@ CC_OPT += -Wno-unused-but-set-variable # disable builtins CC_OPT += -fno-builtin-printf -fno-builtin-snprintf -fno-builtin-vsnprintf \ - -fno-builtin-malloc -fno-builtin-free -fno-builtin-log -fno-builtin-log2 + -fno-builtin-malloc -fno-builtin-free -fno-builtin-log -fno-builtin-log2 \ + -fno-builtin-bzero CC_OPT += -D_KERNEL