Author: dim
Date: Sat Dec 17 00:14:40 2011
New Revision: 228610
URL: http://svn.freebsd.org/changeset/base/228610

Log:
  Use NO_WCAST_ALIGN for sbin/gbde, this is more appropriate to fix the
  alignment warnings than using WARNS=3, and it also works for clang.
  
  MFC after:    1 week

Modified:
  head/sbin/gbde/Makefile

Modified: head/sbin/gbde/Makefile
==============================================================================
--- head/sbin/gbde/Makefile     Fri Dec 16 23:46:05 2011        (r228609)
+++ head/sbin/gbde/Makefile     Sat Dec 17 00:14:40 2011        (r228610)
@@ -7,11 +7,9 @@ SRCS+= rijndael-api-fst.c
 SRCS+= sha2.c
 SRCS+= g_bde_lock.c
 
-# rijndael-fst.c does evil casting things which results in warnings on
-# 64 bit machines, the test-vectors check out however, so it works right.
-.if ${MACHINE_CPUARCH} != "i386"
-WARNS?=        3
-.endif
+# rijndael-fst.c does evil casting things which can results in warnings,
+# the test-vectors check out however, so it works right.
+NO_WCAST_ALIGN=
 
 CFLAGS+= -I${.CURDIR}/../../sys
 .PATH: ${.CURDIR}/../../sys/geom/bde \
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to