summaryrefslogtreecommitdiffstats
path: root/sbin/gbde
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-12-17 00:14:40 +0000
committerdim <dim@FreeBSD.org>2011-12-17 00:14:40 +0000
commit60426ce7813a3f1b8d3eea0ac7dda3dc31e4cbbc (patch)
tree66663ae0321eccd68b59481e8f0fff84de371acc /sbin/gbde
parent8241656bb7d99ebe041870593f1fbae89c665f4a (diff)
downloadFreeBSD-src-60426ce7813a3f1b8d3eea0ac7dda3dc31e4cbbc.zip
FreeBSD-src-60426ce7813a3f1b8d3eea0ac7dda3dc31e4cbbc.tar.gz
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
Diffstat (limited to 'sbin/gbde')
-rw-r--r--sbin/gbde/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/sbin/gbde/Makefile b/sbin/gbde/Makefile
index 2abfcb8..3975eb6 100644
--- a/sbin/gbde/Makefile
+++ b/sbin/gbde/Makefile
@@ -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 \
OpenPOWER on IntegriCloud