Source-Changes-HG archive

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

[src/trunk]: src/external/gpl3/gdb.old/lib/libgdb For GCC10, add -Wno-unused-...



details:   https://anonhg.NetBSD.org/src/rev/e79073850c78
branches:  trunk
changeset: 983165:e79073850c78
user:      rin <rin%NetBSD.org@localhost>
date:      Fri May 07 12:19:48 2021 +0000

description:
For GCC10, add -Wno-unused-result for alloca(0) here and there.

diffstat:

 external/gpl3/gdb.old/lib/libgdb/Makefile |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r c2053590e608 -r e79073850c78 external/gpl3/gdb.old/lib/libgdb/Makefile
--- a/external/gpl3/gdb.old/lib/libgdb/Makefile Fri May 07 11:11:11 2021 +0000
+++ b/external/gpl3/gdb.old/lib/libgdb/Makefile Fri May 07 12:19:48 2021 +0000
@@ -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 @@
 
 # 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 :}



Home | Main Index | Thread Index | Old Index