de11d87641
GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8) GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8) GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8) GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8) use these to turn off warnings for most GCC-8 complaints. many of these are false positives, most of the real bugs are already commited, or are yet to come. we plan to introduce versions of (some?) of these that use the "-Wno-error=" form, which still displays the warnings but does not make it an error, and all of the above will be re-considered as either being "fix me" (warning still displayed) or "warning is wrong."
27 lines
734 B
Makefile
27 lines
734 B
Makefile
# $NetBSD: Makefile,v 1.17 2019/10/13 07:28:15 mrg Exp $
|
|
|
|
WARNS?= 2 # XXX -Wextra -Wsign-compare issues
|
|
|
|
.ifndef HOSTPROG
|
|
.include <bsd.own.mk>
|
|
.endif
|
|
|
|
.PATH: ${NETBSDSRCDIR}/lib/libc/locale ${NETBSDSRCDIR}/lib/libc/citrus ${NETBSDSRCDIR}/lib/libc/stdio
|
|
|
|
PROG= mklocale
|
|
SRCS= yacc.y lex.l mklocaledb.c fix_grouping.c \
|
|
citrus_bcs_strtoul.c citrus_db_factory.c citrus_db_hash.c
|
|
CPPFLAGS+= -I. -I${.CURDIR} \
|
|
-I${NETBSDSRCDIR}/lib/libc/include \
|
|
-I${NETBSDSRCDIR}/lib/libc/locale \
|
|
-I${NETBSDSRCDIR}/lib/libc/citrus \
|
|
-DNBCHAR_MAX=127 -DHOSTPROG
|
|
CPPFLAGS.citrus_bcs_strtoul.c+= \
|
|
-I${NETBSDSRCDIR}/common/lib/libc/stdlib
|
|
YHEADER= 1
|
|
|
|
.ifndef HOSTPROG
|
|
.include <bsd.prog.mk>
|
|
COPTS.man.c+= ${GCC_NO_FORMAT_TRUNCATION}
|
|
.endif
|