aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/xfs
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2011-12-30 13:16:59 +0000
committerDimitry Andric <dim@FreeBSD.org>2011-12-30 13:16:59 +0000
commit97a15669a0ac7b2ad99edfb1a65d824ebcaf9a2d (patch)
treeac52d2fd945773a05e42149c733bc2c4a8147cbf /sys/modules/xfs
parent93b03d5dc7b2a30a7e5a1d1224178380bd3ebc01 (diff)
downloadsrc-97a15669a0ac7b2ad99edfb1a65d824ebcaf9a2d.tar.gz
src-97a15669a0ac7b2ad99edfb1a65d824ebcaf9a2d.zip
Disable several instances instances of clang's -Wself-assign warning.
All of these are harmless, and are in fact used to shut up warnings from lint. While here, remove -Wno-missing-prototypes from the xfs module Makefile, as I could not reproduce those warnings either with gcc or clang. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=228994
Diffstat (limited to 'sys/modules/xfs')
-rw-r--r--sys/modules/xfs/Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/modules/xfs/Makefile b/sys/modules/xfs/Makefile
index e713b05aa3d2..713501956b06 100644
--- a/sys/modules/xfs/Makefile
+++ b/sys/modules/xfs/Makefile
@@ -86,8 +86,5 @@ CFLAGS+= -I${.CURDIR}/../../gnu/fs/xfs/FreeBSD \
-I${.CURDIR}/../../gnu/fs/xfs/FreeBSD/support \
-I${.CURDIR}/../../gnu/fs/xfs
-#
-# XFS sources trigger missing-prototypes warnings.
-# Disable them here.
-#
-CWARNFLAGS+= -Wno-missing-prototypes
+CWARNFLAGS.xfs_ioctl.c= ${NO_WSELF_ASSIGN}
+CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}