Since clang 3.2 now has an option to suppress warnings about implicitly

promoted K&R parameters, remove the workarounds added for sendmail
components in r228558.

MFC after:	1 week
This commit is contained in:
Dimitry Andric 2013-02-16 20:17:31 +00:00
parent 1844ff169f
commit a7449e3cca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=246880
6 changed files with 1 additions and 26 deletions

View File

@ -18,11 +18,6 @@ CFLAGS+=${SENDMAIL_CFLAGS}
WARNS?= 2
# 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.clang=
LIB= sm
SRCS+= sm_os.h

View File

@ -12,11 +12,6 @@ CFLAGS+=-I${SENDMAIL_DIR}/include -I.
WARNS?= 2
WFORMAT=0
# 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.clang=
LIBSMDIR= ${.OBJDIR}/../../lib/libsm
LIBSM= ${LIBSMDIR}/libsm.a

View File

@ -17,11 +17,6 @@ LDADD= ${LIBSM}
WARNS?= 2
# 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.clang=
SRCS+= sm_os.h
CLEANFILES+=sm_os.h

View File

@ -72,7 +72,7 @@ CWARNFLAGS+= -Wno-tautological-compare -Wno-unused-value\
-Wno-parentheses-equality -Wno-unused-function -Wno-conversion
.endif # WARNS <= 3
.if ${WARNS} <= 2
CWARNFLAGS+= -Wno-switch -Wno-switch-enum
CWARNFLAGS+= -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter
.endif # WARNS <= 2
.if ${WARNS} <= 1
CWARNFLAGS+= -Wno-parentheses

View File

@ -11,11 +11,6 @@ CFLAGS+=-D_FFR_LISTDB -D_FFR_DEBUG
WARNS?= 2
# 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.clang=
LIBSMDIR= ${.OBJDIR}/../../lib/libsm
LIBSM= ${LIBSMDIR}/libsm.a

View File

@ -45,11 +45,6 @@ CFLAGS+= -DNETINET6
WARNS?= 1
# 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.clang=
DPADD= ${LIBUTIL} ${LIBWRAP}
LDADD= -lutil -lwrap