Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Dec 2011 15:03:30 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r229112 - in stable/9: lib/libsm libexec/mail.local libexec/smrsh usr.bin/vacation usr.sbin/sendmail
Message-ID:  <201112311503.pBVF3UHu069818@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Sat Dec 31 15:03:29 2011
New Revision: 229112
URL: http://svn.freebsd.org/changeset/base/229112

Log:
  MFC r228558, r228585, r228588, r228652, r228707:
  
    Unfortunately, clang gives warnings about sendmail code that cannot be
    turned off yet.  Since this is contrib code, and we don't really care
    about the warnings, just make them non-fatal for now.
  
  MFC r228590:
  
    Fix typos in the comments about clang warnings in several
    sendmail-related Makefiles.
  
    Spotted by:	arundel
  
  MFC r228708:
  
    In usr.bin/vacation/Makefile, fix a typo in the comment about clang
    warnings.
  
    Spotted by:	arundel

Modified:
  stable/9/lib/libsm/Makefile
  stable/9/libexec/mail.local/Makefile
  stable/9/libexec/smrsh/Makefile
  stable/9/usr.bin/vacation/Makefile
  stable/9/usr.sbin/sendmail/Makefile
Directory Properties:
  stable/9/lib/libsm/   (props changed)
  stable/9/libexec/mail.local/   (props changed)
  stable/9/libexec/smrsh/   (props changed)
  stable/9/usr.bin/vacation/   (props changed)
  stable/9/usr.sbin/sendmail/   (props changed)

Modified: stable/9/lib/libsm/Makefile
==============================================================================
--- stable/9/lib/libsm/Makefile	Sat Dec 31 14:57:52 2011	(r229111)
+++ stable/9/lib/libsm/Makefile	Sat Dec 31 15:03:29 2011	(r229112)
@@ -18,6 +18,13 @@ CFLAGS+=${SENDMAIL_CFLAGS}
 
 WARNS?=	2
 
+.if ${CC:T:Mclang} == "clang"
+# Unfortunately, clang gives warnings about sendmail code that cannot
+# be turned off yet.  Since this is contrib code, and we don't really
+# care about the warnings, just make them non-fatal for now.
+NO_WERROR=
+.endif
+
 LIB=	sm
 
 SRCS+=	sm_os.h

Modified: stable/9/libexec/mail.local/Makefile
==============================================================================
--- stable/9/libexec/mail.local/Makefile	Sat Dec 31 14:57:52 2011	(r229111)
+++ stable/9/libexec/mail.local/Makefile	Sat Dec 31 15:03:29 2011	(r229112)
@@ -12,6 +12,13 @@ CFLAGS+=-I${SENDMAIL_DIR}/include -I.
 WARNS?=	2
 WFORMAT=0
 
+.if ${CC:T:Mclang} == "clang"
+# Unfortunately, clang gives warnings about sendmail code that cannot
+# be turned off yet.  Since this is contrib code, and we don't really
+# care about the warnings, just make them non-fatal for now.
+NO_WERROR=
+.endif
+
 LIBSMDIR=	${.OBJDIR}/../../lib/libsm
 LIBSM=		${LIBSMDIR}/libsm.a
 

Modified: stable/9/libexec/smrsh/Makefile
==============================================================================
--- stable/9/libexec/smrsh/Makefile	Sat Dec 31 14:57:52 2011	(r229111)
+++ stable/9/libexec/smrsh/Makefile	Sat Dec 31 15:03:29 2011	(r229112)
@@ -17,6 +17,13 @@ LDADD=	${LIBSM}
 
 WARNS?=	2
 
+.if ${CC:T:Mclang} == "clang"
+# Unfortunately, clang gives warnings about sendmail code that cannot
+# be turned off yet.  Since this is contrib code, and we don't really
+# care about the warnings, just make them non-fatal for now.
+NO_WERROR=
+.endif
+
 SRCS+=	sm_os.h
 CLEANFILES+=sm_os.h
 

Modified: stable/9/usr.bin/vacation/Makefile
==============================================================================
--- stable/9/usr.bin/vacation/Makefile	Sat Dec 31 14:57:52 2011	(r229111)
+++ stable/9/usr.bin/vacation/Makefile	Sat Dec 31 15:03:29 2011	(r229112)
@@ -11,6 +11,13 @@ CFLAGS+=-D_FFR_LISTDB -D_FFR_DEBUG
 
 WARNS?=	2
 
+.if ${CC:T:Mclang} == "clang"
+# Unfortunately, clang gives warnings about sendmail code that cannot
+# be turned off yet.  Since this is contrib code, and we don't really
+# care about the warnings, just make them non-fatal for now.
+NO_WERROR=
+.endif
+
 LIBSMDIR=	${.OBJDIR}/../../lib/libsm
 LIBSM=		${LIBSMDIR}/libsm.a
 

Modified: stable/9/usr.sbin/sendmail/Makefile
==============================================================================
--- stable/9/usr.sbin/sendmail/Makefile	Sat Dec 31 14:57:52 2011	(r229111)
+++ stable/9/usr.sbin/sendmail/Makefile	Sat Dec 31 15:03:29 2011	(r229112)
@@ -45,6 +45,13 @@ CFLAGS+= -DNETINET6
 
 WARNS?=	1
 
+.if ${CC:T:Mclang} == "clang"
+# Unfortunately, clang gives warnings about sendmail code that cannot
+# be turned off yet.  Since this is contrib code, and we don't really
+# care about the warnings, just make them non-fatal for now.
+NO_WERROR=
+.endif
+
 DPADD=	${LIBUTIL} ${LIBWRAP}
 LDADD=	-lutil -lwrap
 



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