Instead of disabling gcc's deprecated declaration warnings about e.g.
std::auto_ptr in a whole bunch of individual Makefiles, make the warning globally non-fatal instead. This is similar to what was done to many more non-fatal warnings from newer gcc versions.
This commit is contained in:
parent
d9ec4fa9ce
commit
23e2b4d9b1
@ -48,9 +48,6 @@ CFLAGS+= -I.
|
|||||||
|
|
||||||
CFLAGS+= -DHAVE_CONFIG_H
|
CFLAGS+= -DHAVE_CONFIG_H
|
||||||
|
|
||||||
# Silence warnings about std::auto_ptr usage
|
|
||||||
CWARNFLAGS+= -Wno-deprecated-declarations
|
|
||||||
|
|
||||||
SRCS= application.cpp \
|
SRCS= application.cpp \
|
||||||
build.cpp \
|
build.cpp \
|
||||||
check.cpp \
|
check.cpp \
|
||||||
|
@ -18,8 +18,4 @@ WARNS?= 3
|
|||||||
PRIVATELIB= true
|
PRIVATELIB= true
|
||||||
SHLIB_MAJOR= 0
|
SHLIB_MAJOR= 0
|
||||||
|
|
||||||
# Silence gcc warnings about deprecated std::auto_ptr, and various function
|
|
||||||
# objects from <functional>.
|
|
||||||
CWARNFLAGS+= -Wno-deprecated-declarations
|
|
||||||
|
|
||||||
.include <bsd.lib.mk>
|
.include <bsd.lib.mk>
|
||||||
|
@ -38,9 +38,6 @@ MAN= atf-check.1
|
|||||||
CFLAGS+= -I${ATF}
|
CFLAGS+= -I${ATF}
|
||||||
CFLAGS+= -DATF_SHELL='"/bin/sh"'
|
CFLAGS+= -DATF_SHELL='"/bin/sh"'
|
||||||
|
|
||||||
# Silence warnings about std::auto_ptr usage
|
|
||||||
CWARNFLAGS+= -Wno-deprecated-declarations
|
|
||||||
|
|
||||||
LIBADD= atf_cxx
|
LIBADD= atf_cxx
|
||||||
|
|
||||||
HAS_TESTS=
|
HAS_TESTS=
|
||||||
|
@ -65,9 +65,6 @@ CFLAGS+= -DATF_PKGDATADIR='"${SHAREDIR}/atf"'
|
|||||||
CFLAGS+= -DATF_SHELL='"/bin/sh"'
|
CFLAGS+= -DATF_SHELL='"/bin/sh"'
|
||||||
CFLAGS+= -I${ATF}
|
CFLAGS+= -I${ATF}
|
||||||
|
|
||||||
# Silence warnings about std::auto_ptr usage
|
|
||||||
CWARNFLAGS+= -Wno-deprecated-declarations
|
|
||||||
|
|
||||||
LIBADD= atf_cxx
|
LIBADD= atf_cxx
|
||||||
|
|
||||||
FILESGROUPS= SUBR
|
FILESGROUPS= SUBR
|
||||||
|
@ -55,8 +55,6 @@ LDADD.${_T}+= ${LIBATF_CXX} ${LIBATF_C}
|
|||||||
.endif
|
.endif
|
||||||
TEST_INTERFACE.${_T}= atf
|
TEST_INTERFACE.${_T}= atf
|
||||||
.endfor
|
.endfor
|
||||||
# Silence warnings about std::auto_ptr usage
|
|
||||||
CWARNFLAGS+= -Wno-deprecated-declarations
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !empty(ATF_TESTS_SH)
|
.if !empty(ATF_TESTS_SH)
|
||||||
|
@ -137,6 +137,7 @@ CWARNFLAGS+= -Wno-error=address \
|
|||||||
-Wno-error=bool-compare \
|
-Wno-error=bool-compare \
|
||||||
-Wno-error=cast-align \
|
-Wno-error=cast-align \
|
||||||
-Wno-error=clobbered \
|
-Wno-error=clobbered \
|
||||||
|
-Wno-error=deprecated-declarations \
|
||||||
-Wno-error=enum-compare \
|
-Wno-error=enum-compare \
|
||||||
-Wno-error=extra \
|
-Wno-error=extra \
|
||||||
-Wno-error=inline \
|
-Wno-error=inline \
|
||||||
|
Loading…
Reference in New Issue
Block a user