pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/acpica-utils For GCC9, add -Wno-error=format-...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f8be2581a206
branches:  trunk
changeset: 440716:f8be2581a206
user:      rin <rin%pkgsrc.org@localhost>
date:      Fri Oct 16 11:46:39 2020 +0000

description:
For GCC9, add -Wno-error=format-overflow -Wno-error=stringop-truncation to
fix build.

diffstat:

 sysutils/acpica-utils/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 3c14141e0c83 -r f8be2581a206 sysutils/acpica-utils/Makefile
--- a/sysutils/acpica-utils/Makefile    Fri Oct 16 11:35:09 2020 +0000
+++ b/sysutils/acpica-utils/Makefile    Fri Oct 16 11:46:39 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2020/03/22 12:24:58 rillig Exp $
+# $NetBSD: Makefile,v 1.15 2020/10/16 11:46:39 rin Exp $
 #
 
 DISTNAME=      acpica-unix2-20160930
@@ -51,8 +51,13 @@
 
 .include "../../mk/compiler.mk"
 
+# XXX
 .if !empty(CC_VERSION:Mgcc-[89]*)
 CFLAGS+=       -Wno-error=format-truncation
 .endif
+.if !empty(CC_VERSION:Mgcc-9*)
+CFLAGS+=       -Wno-error=format-overflow \
+               -Wno-error=stringop-truncation
+.endif
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index