From b207c9d8568d3a77f7d669b84234ccff73bb56ff Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 9 Feb 2010 17:16:13 +0000 Subject: [PATCH] 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(+) diff --git a/usr.sbin/wake/Makefile b/usr.sbin/wake/Makefile index 938fc663e0fd..f75d4693d1b5 100644 --- a/usr.sbin/wake/Makefile +++ b/usr.sbin/wake/Makefile @@ -3,4 +3,6 @@ PROG= wake MAN= wake.8 +WARNS?= 3 + .include