summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2013-12-10 07:28:26 +0000
committerdim <dim@FreeBSD.org>2013-12-10 07:28:26 +0000
commit837dce146606b55eef0c646529411ee0afd735dc (patch)
tree8815de90f5c77640aa31a56dbcfa06022c4f65aa /share/mk
parentf972f6b92d78f3f4132fa281693ec042a0000337 (diff)
downloadFreeBSD-src-837dce146606b55eef0c646529411ee0afd735dc.zip
FreeBSD-src-837dce146606b55eef0c646529411ee0afd735dc.tar.gz
MFC r259083:
For WARNS <= 3, change the clang warning flag -Wno-conversion to -Wno-enum-conversion. In earlier clang versions (before 3.2), the latter did not exist, and suppressing enum conversion warnings was really the goal of this warning suppression flag. This should enable the same kind of warning again as was fixed by r259072 ("incompatible integer to pointer conversion passing 'Elf_Addr' (aka 'unsigned int') to parameter of type 'void *'"), and which was only emitted by gcc. Noticed by: kib
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.sys.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 72dfa61..e297115 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -73,7 +73,7 @@ CWARNFLAGS+= -Wno-empty-body -Wno-string-plus-int
.endif # WARNS <= 6
.if ${WARNS} <= 3
CWARNFLAGS+= -Wno-tautological-compare -Wno-unused-value\
- -Wno-parentheses-equality -Wno-unused-function -Wno-conversion
+ -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion
.endif # WARNS <= 3
.if ${WARNS} <= 2
CWARNFLAGS+= -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter
OpenPOWER on IntegriCloud