Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jan 2012 20:57:39 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r229205 - stable/9/usr.bin/netstat
Message-ID:  <201201012057.q01KvdMr030494@svn.freebsd.org>

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



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