Skip to content

Commit

Permalink
add some rules
Browse files Browse the repository at this point in the history
  • Loading branch information
laffer1 committed Jan 15, 2021
1 parent ae769d3 commit 2a08d7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion share/mk/atf.test.mk
@@ -1,4 +1,4 @@
# $FreeBSD: stable/11/share/mk/atf.test.mk 291896 2015-12-06 07:30:18Z ngie $
# $FreeBSD$
#
# You must include bsd.test.mk instead of this file from your Makefile.
#
Expand Down Expand Up @@ -54,6 +54,8 @@ LDADD.${_T}+= ${LIBATF_CXX} ${LIBATF_C}
.endif
TEST_INTERFACE.${_T}= atf
.endfor
# Silence warnings about usage of deprecated std::auto_ptr
CXXWARNFLAGS+= -Wno-deprecated-declarations
.endif

.if !empty(ATF_TESTS_SH)
Expand Down
3 changes: 3 additions & 0 deletions share/mk/bsd.sys.mk
Expand Up @@ -138,6 +138,7 @@ CWARNFLAGS+= -Wno-error=address \
-Wno-error=bool-compare \
-Wno-error=cast-align \
-Wno-error=clobbered \
-Wno-error=deprecated-declarations \
-Wno-error=enum-compare \
-Wno-error=extra \
-Wno-error=inline \
Expand Down Expand Up @@ -212,6 +213,8 @@ CFLAGS+= ${SSP_CFLAGS}
.if ${MK_WARNS} != "no"
CFLAGS+= ${CWARNFLAGS:M*} ${CWARNFLAGS.${COMPILER_TYPE}}
CFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}
CXXFLAGS+= ${CXXWARNFLAGS:M*} ${CXXWARNFLAGS.${COMPILER_TYPE}}
CXXFLAGS+= ${CXXWARNFLAGS.${.IMPSRC:T}}
.endif

CFLAGS+= ${CFLAGS.${COMPILER_TYPE}}
Expand Down

0 comments on commit 2a08d7a

Please sign in to comment.