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

Dimitry Andric dim at FreeBSD.org
Fri Mar 23 10:58:36 UTC 2012


Author: dim
Date: Fri Mar 23 10:58:35 2012
New Revision: 233350
URL: http://svn.freebsd.org/changeset/base/233350

Log:
  MFC r232748:
  
  After r232745, which makes sure __bswap16(), ntohs() and htons() return
  __uint16_t, we can partially undo r228668.
  
  Note the remark "Work around a clang false positive with format string
  warnings and ntohs macros (see LLVM PR 11313)" was actually incorrect.
  
  Before r232745, on some arches, the ntohs() macros did in fact return
  int, not uint16_t, so clang was right in warning about the %hu format
  string.

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	Fri Mar 23 10:55:19 2012	(r233349)
+++ stable/9/usr.bin/netstat/Makefile	Fri Mar 23 10:58:35 2012	(r233350)
@@ -8,9 +8,6 @@ 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
-# XXX: Work around a clang false positive with format string warnings
-# and ntohs macros (see LLVM PR 11313).
-NO_WFORMAT.clang=
 CFLAGS+=-fno-strict-aliasing
 
 CFLAGS+=-DIPSEC


More information about the svn-src-stable-9 mailing list