From 90dc754a9d3b6bc4fba6071752d3ee44278b1483 Mon Sep 17 00:00:00 2001 From: joerg Date: Tue, 17 Jul 2018 18:58:10 +0000 Subject: [PATCH] Ignore atomic alignment warnings on ARM. The compiler doesn't know that the library implementation will be fine. --- external/bsd/libc++/lib/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/external/bsd/libc++/lib/Makefile b/external/bsd/libc++/lib/Makefile index 4372636b4687..c5c7b34d3528 100644 --- a/external/bsd/libc++/lib/Makefile +++ b/external/bsd/libc++/lib/Makefile @@ -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