From 36dc0770b218c83fd37dfb38ab8dc4ccc1c4bab6 Mon Sep 17 00:00:00 2001 From: imp Date: Tue, 9 Feb 2010 17:16:13 +0000 Subject: Anything that casts struct sockaddr * to struct sockaddr_foo is safe due to careful design. We've not yet figured out how to properly annotate the sockaddr structs to communicate this to the compiler and there's a number of constructs in the tree that make this annotation challenging. As such, reduce warns to 3 here because this code really isn't warns 6 safe, even if it kinda sorta appears to be on intel (which has no such alignment restrictions). Warns 4 adds the -Wcast-align warning. # fixes the mips tinderbox build --- usr.sbin/wake/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.sbin/wake/Makefile') diff --git a/usr.sbin/wake/Makefile b/usr.sbin/wake/Makefile index 938fc66..f75d469 100644 --- a/usr.sbin/wake/Makefile +++ b/usr.sbin/wake/Makefile @@ -3,4 +3,6 @@ PROG= wake MAN= wake.8 +WARNS?= 3 + .include -- cgit v1.1