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
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to