svn commit: r259158 - in stable: 10/share/mk 9/share/mk

Dimitry Andric dim at FreeBSD.org
Tue Dec 10 07:28:27 UTC 2013


Author: dim
Date: Tue Dec 10 07:28:26 2013
New Revision: 259158
URL: http://svnweb.freebsd.org/changeset/base/259158

Log:
  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

Modified:
  stable/10/share/mk/bsd.sys.mk
Directory Properties:
  stable/10/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/9/share/mk/bsd.sys.mk   (contents, props changed)
Directory Properties:
  stable/9/share/mk/   (props changed)

Modified: stable/10/share/mk/bsd.sys.mk
==============================================================================
--- stable/10/share/mk/bsd.sys.mk	Tue Dec 10 07:25:25 2013	(r259157)
+++ stable/10/share/mk/bsd.sys.mk	Tue Dec 10 07:28:26 2013	(r259158)
@@ -73,7 +73,7 @@ CWARNFLAGS+=	-Wno-empty-body -Wno-string
 .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


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