From 5780802b6cec44c8398568043c1dbf8bd3d4c241 Mon Sep 17 00:00:00 2001 From: dim Date: Fri, 16 Dec 2011 15:00:56 +0000 Subject: 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 --- lib/libthread_db/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.1