aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2012-03-09 20:50:15 +0000
committerDimitry Andric <dim@FreeBSD.org>2012-03-09 20:50:15 +0000
commit6aa83769fd1edb06e197a9f006486fe791f1c05f (patch)
tree3360382b61048e64187df2e586cc950e86bb6fe6
parent646af7c6af40b6b0b617758e7b13ad8b22368603 (diff)
downloadsrc-6aa83769fd1edb06e197a9f006486fe791f1c05f.tar.gz
src-6aa83769fd1edb06e197a9f006486fe791f1c05f.zip
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. MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=232748
-rw-r--r--usr.bin/netstat/Makefile3
1 files changed, 0 insertions, 3 deletions
diff --git a/usr.bin/netstat/Makefile b/usr.bin/netstat/Makefile
index 224f2b7f6615..ce5cdab4c2b3 100644
--- a/usr.bin/netstat/Makefile
+++ b/usr.bin/netstat/Makefile
@@ -8,9 +8,6 @@ SRCS= if.c inet.c main.c mbuf.c mroute.c netisr.c route.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