This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Add one use of ATTRIBUTE_UNUSED
- From: Tom Tromey <tromey at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 14 Jul 2016 16:41:37 -0000
- Subject: [binutils-gdb] Add one use of ATTRIBUTE_UNUSED
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=821fc4aeef26bc7e5d5943c2f5d009a23e16883c
commit 821fc4aeef26bc7e5d5943c2f5d009a23e16883c
Author: Tom Tromey <tom@tromey.com>
Date: Mon Jun 6 13:43:50 2016 -0600
Add one use of ATTRIBUTE_UNUSED
One spot needed ATTRIBUTE_UNUSED to cope with the new warnings.
The case in inflow.c is just a mass of ifdefs; and while the only use
of "result" is guarded by "#if 0", I thought it simplest to leave it
all in place.
2016-07-14 Tom Tromey <tom@tromey.com>
* inflow.c (child_terminal_ours_1): Use ATTRIBUTE_UNUSED.
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/inflow.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index cef090c..f5c0072 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2016-07-14 Tom Tromey <tom@tromey.com>
+ * inflow.c (child_terminal_ours_1): Use ATTRIBUTE_UNUSED.
+
+2016-07-14 Tom Tromey <tom@tromey.com>
+
* corefile.c (reopen_exec_file): Only examine st.st_mtime if stat
succeeded.
diff --git a/gdb/inflow.c b/gdb/inflow.c
index 4cbcd5c..27ce0b0 100644
--- a/gdb/inflow.c
+++ b/gdb/inflow.c
@@ -398,7 +398,7 @@ child_terminal_ours_1 (int output_only)
pgrp. */
sighandler_t osigttou = NULL;
#endif
- int result;
+ int result ATTRIBUTE_UNUSED;
#ifdef SIGTTOU
if (job_control)