Module Name: src
Committed By: rin
Date: Fri May 7 12:19:48 UTC 2021
Modified Files:
src/external/gpl3/gdb.old/lib/libgdb: Makefile
Log Message:
For GCC10, add -Wno-unused-result for alloca(0) here and there.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gdb.old/lib/libgdb/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gdb.old/lib/libgdb/Makefile
diff -u src/external/gpl3/gdb.old/lib/libgdb/Makefile:1.11 src/external/gpl3/gdb.old/lib/libgdb/Makefile:1.12
--- src/external/gpl3/gdb.old/lib/libgdb/Makefile:1.11 Thu Oct 8 08:31:37 2020
+++ src/external/gpl3/gdb.old/lib/libgdb/Makefile Fri May 7 12:19:48 2021
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2020/10/08 08:31:37 rin Exp $
+# $NetBSD: Makefile,v 1.12 2021/05/07 12:19:48 rin Exp $
NOCTF=
HOSTPROG_CXX= 1
@@ -79,3 +79,6 @@ CLEANDIRFILES+= \
# corelow.c
CWARNFLAGS.gcc+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 9:? -Wno-error=alloca-larger-than= :}
+
+# for alloca(0)
+CWARNFLAGS.gcc+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-unused-result :}