summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-12-16 15:00:56 +0000
committerdim <dim@FreeBSD.org>2011-12-16 15:00:56 +0000
commit5780802b6cec44c8398568043c1dbf8bd3d4c241 (patch)
tree98f85b15122c2b5c1d6922a14c5cea840ee7b501 /lib
parent82ed6bc81698013a0ee20065798a49b4b6c96b36 (diff)
downloadFreeBSD-src-5780802b6cec44c8398568043c1dbf8bd3d4c241.zip
FreeBSD-src-5780802b6cec44c8398568043c1dbf8bd3d4c241.tar.gz
In lib/libthread_db/arch/i386/libpthread_md.c, clang gives two incorrect
warnings about alignment, so turn -Wcast-align off for now. MFC after: 1 week
Diffstat (limited to 'lib')
-rw-r--r--lib/libthread_db/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libthread_db/Makefile b/lib/libthread_db/Makefile
index 047bbe6..a66f25d 100644
--- a/lib/libthread_db/Makefile
+++ b/lib/libthread_db/Makefile
@@ -16,4 +16,10 @@ SYM_MAPS+=${.CURDIR}/Symbol.map
SYMBOL_MAPS=${SYM_MAPS}
VERSION_DEF=${.CURDIR}/../libc/Versions.def
+.if ${CC:T:Mclang} == "clang"
+# Unfortunately, clang gives an incorrect warning about alignment in
+# arch/i386/libpthread_md.c, so turn that off for now.
+NO_WCAST_ALIGN=
+.endif
+
.include <bsd.lib.mk>
OpenPOWER on IntegriCloud