NetBSD/sbin/routed/Makefile
mrg de11d87641 introduce some common variables for use in GCC warning disables:
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."
2019-10-13 07:28:04 +00:00

24 lines
539 B
Makefile

# $NetBSD: Makefile,v 1.26 2019/10/13 07:28:13 mrg Exp $
# from: @(#)Makefile 8.1 (Berkeley) 6/19/93
USE_FORT?= yes # network client/server
PROG= routed
SRCS= if.c input.c main.c output.c parms.c radix.c rdisc.c table.c trace.c
MAN= routed.8
SUBDIR= rtquery
LDADD+= -lutil
DPADD+= ${LIBUTIL}
# By popular demand...
MLINKS= routed.8 rdisc.8
#COPTS+=-g -DDEBUG -Wall
COPTS.main.c = -Wno-format-nonliteral
COPTS.trace.c = -Wno-format-nonliteral
COPTS.if.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.prog.mk>
.include <bsd.subdir.mk>