svn commit: r203707 - head/usr.sbin/wake
Warner Losh
imp at FreeBSD.org
Tue Feb 9 17:16:13 UTC 2010
Author: imp
Date: Tue Feb 9 17:16:13 2010
New Revision: 203707
URL: http://svn.freebsd.org/changeset/base/203707
Log:
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
Modified:
head/usr.sbin/wake/Makefile
Modified: head/usr.sbin/wake/Makefile
==============================================================================
--- head/usr.sbin/wake/Makefile Tue Feb 9 16:18:44 2010 (r203706)
+++ head/usr.sbin/wake/Makefile Tue Feb 9 17:16:13 2010 (r203707)
@@ -3,4 +3,6 @@
PROG= wake
MAN= wake.8
+WARNS?= 3
+
.include <bsd.prog.mk>
More information about the svn-src-head
mailing list