diff options
author | imp <imp@FreeBSD.org> | 2010-02-09 17:16:13 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2010-02-09 17:16:13 +0000 |
commit | 36dc0770b218c83fd37dfb38ab8dc4ccc1c4bab6 (patch) | |
tree | 5da16af97e34914bf8b109caa0a959926e1662f4 /usr.sbin/wake/Makefile | |
parent | a98b1b2040c3d50c040f820300cb88588bf41b79 (diff) | |
download | FreeBSD-src-36dc0770b218c83fd37dfb38ab8dc4ccc1c4bab6.zip FreeBSD-src-36dc0770b218c83fd37dfb38ab8dc4ccc1c4bab6.tar.gz |
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
Diffstat (limited to 'usr.sbin/wake/Makefile')
-rw-r--r-- | usr.sbin/wake/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
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 <bsd.prog.mk> |