svn commit: r229205 - stable/9/usr.bin/netstat

Dimitry Andric dim at FreeBSD.org
Sun Jan 1 20:57:39 UTC 2012


Author: dim
Date: Sun Jan  1 20:57:38 2012
New Revision: 229205
URL: http://svn.freebsd.org/changeset/base/229205

Log:
  MFC r228650:
  
    In usr.bin/netstat/atalk.c, work around a clang false positive with
    printf format warnings and conditional operators.
  
  MFC r228668:
  
    Revert r228650, and work around the clang false positive with printf
    formats in usr.bin/netstat/atalk.c by conditionally adding NO_WFORMAT to
    the Makefile instead.

Modified:
  stable/9/usr.bin/netstat/Makefile
Directory Properties:
  stable/9/usr.bin/netstat/   (props changed)

Modified: stable/9/usr.bin/netstat/Makefile
==============================================================================
--- stable/9/usr.bin/netstat/Makefile	Sun Jan  1 20:54:44 2012	(r229204)
+++ stable/9/usr.bin/netstat/Makefile	Sun Jan  1 20:57:38 2012	(r229205)
@@ -8,6 +8,11 @@ SRCS=	if.c inet.c main.c mbuf.c mroute.c
 	unix.c atalk.c mroute6.c ipsec.c bpf.c pfkey.c sctp.c
 
 WARNS?=	3
+.if ${CC:T:Mclang} == "clang"
+# XXX: Work around a clang false positive with format string warnings
+# and ntohs macros (see LLVM PR 11313).
+NO_WFORMAT=
+.endif
 CFLAGS+=-fno-strict-aliasing
 
 CFLAGS+=-DIPSEC


More information about the svn-src-all mailing list