From a31bab7fbe24e560234889b76e2d1a18a6c4065d Mon Sep 17 00:00:00 2001 From: fox Date: Sat, 8 Feb 2020 12:53:29 +0000 Subject: [PATCH] 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@ --- usr.bin/talk/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.bin/talk/Makefile b/usr.bin/talk/Makefile index 069b603bbc57..b390be464841 100644 --- a/usr.bin/talk/Makefile +++ b/usr.bin/talk/Makefile @@ -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 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 \ init_disp.c invite.c io.c look_up.c msgs.c talk.c +COPTS.get_names.c+= ${GCC_NO_STRINGOP_TRUNCATION} + .include