Ignore atomic alignment warnings on ARM. The compiler doesn't

know that the library implementation will be fine.
This commit is contained in:
joerg 2018-07-17 18:58:10 +00:00
parent 2eb8474eb5
commit 90dc754a9d
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2018/06/06 12:02:43 kamil Exp $
# $NetBSD: Makefile,v 1.12 2018/07/17 18:58:10 joerg Exp $
LIB= c++
WARNS= 4
@ -48,4 +48,8 @@ CWARNFLAGS.clang+= -Wno-error=implicit-exception-spec-mismatch
LDFLAGS+= -Wl,-z,defs
.endif
.if !empty(MACHINE_ARCH:Marm*) || !empty(MACHINE_ARCH:Mearm*)
CWARNFLAGS+= -Wno-atomic-alignment
.endif
.include <bsd.lib.mk>