Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Feb 2010 17:16:13 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r203707 - head/usr.sbin/wake
Message-ID:  <201002091716.o19HGDD2030343@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002091716.o19HGDD2030343>