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:
parent
1844ff169f
commit
a7449e3cca
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user