Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Dec 2013 22:30:08 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r259083 - head/share/mk
Message-ID:  <201312072230.rB7MU8WK055539@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Sat Dec  7 22:30:07 2013
New Revision: 259083
URL: http://svnweb.freebsd.org/changeset/base/259083

Log:
  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
  MFC after:	3 days

Modified:
  head/share/mk/bsd.sys.mk

Modified: head/share/mk/bsd.sys.mk
==============================================================================
--- head/share/mk/bsd.sys.mk	Sat Dec  7 22:25:07 2013	(r259082)
+++ head/share/mk/bsd.sys.mk	Sat Dec  7 22:30:07 2013	(r259083)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312072230.rB7MU8WK055539>