From 4b9de9960a92118e22de5e95ce3eca55ad607922 Mon Sep 17 00:00:00 2001 From: dim Date: Tue, 10 Dec 2013 07:28:26 +0000 Subject: [PATCH] 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 git-svn-id: svn://svn.freebsd.org/base/stable/9@259158 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- share/mk/bsd.sys.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 1d8b49d41..8dfcb5a2d 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -69,7 +69,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 -- 2.45.0