usr.bin/talk: Suppress -Werror=stringop-truncation error.

Add GCC_NO_STRINGOP_TRUNCATION to get_names.c to prevent build failure.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@
This commit is contained in:
fox 2020-02-08 12:53:29 +00:00
parent 8d2b6606df
commit a31bab7fbe

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 2010/02/06 23:45:26 he Exp $ # $NetBSD: Makefile,v 1.9 2020/02/08 12:53:29 fox Exp $
# @(#)Makefile 8.1 (Berkeley) 6/6/93 # @(#)Makefile 8.1 (Berkeley) 6/6/93
USE_FORT?= yes # network client USE_FORT?= yes # network client
@ -9,4 +9,6 @@ LDADD= -lcurses -lterminfo -lutil
SRCS= ctl.c ctl_transact.c display.c get_addrs.c get_names.c \ SRCS= ctl.c ctl_transact.c display.c get_addrs.c get_names.c \
init_disp.c invite.c io.c look_up.c msgs.c talk.c init_disp.c invite.c io.c look_up.c msgs.c talk.c
COPTS.get_names.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>