diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2021-12-17 14:59:23 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2021-12-17 14:59:23 +0000 |
commit | 5f72cf4449fbc07c57abadebcaa1b9e1e0cbbb07 (patch) | |
tree | 019058f6a212497c4f53347d6c6c53e9e7cac03c /gnu/usr.bin/binutils-2.17/Makefile.bsd-wrapper | |
parent | 3d2d3481f3fd5e51bc447f398ceb6f31b4ed5d9d (diff) |
Disable a few warning flags that were introduced and enabled by default
with LLVM 13.
Diffstat (limited to 'gnu/usr.bin/binutils-2.17/Makefile.bsd-wrapper')
-rw-r--r-- | gnu/usr.bin/binutils-2.17/Makefile.bsd-wrapper | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils-2.17/Makefile.bsd-wrapper b/gnu/usr.bin/binutils-2.17/Makefile.bsd-wrapper index 486aa67d24a..37c17f4bdc8 100644 --- a/gnu/usr.bin/binutils-2.17/Makefile.bsd-wrapper +++ b/gnu/usr.bin/binutils-2.17/Makefile.bsd-wrapper @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.bsd-wrapper,v 1.24 2021/11/23 10:30:08 robert Exp $ +# $OpenBSD: Makefile.bsd-wrapper,v 1.25 2021/12/17 14:59:21 patrick Exp $ .include <bsd.own.mk> @@ -8,6 +8,9 @@ SUBDIRS= opcodes bfd CONF_SUBDIRS= opcodes bfd CFLAGS+= ${PIE_DEFAULT} +.if ${COMPILER_VERSION:Mclang} +CFLAGS+= -Wno-unused-but-set-variable -Wno-null-pointer-subtraction +.endif XCFLAGS= CC="${CC}" CFLAGS="${CFLAGS} ${COPTS}" LDFLAGS="${LDSTATIC}" # This allows moving the whole binutils installation around for # testing purposes |