From: Tom Tromey Date: Mon, 6 Jun 2016 19:43:50 +0000 (-0600) Subject: Add one use of ATTRIBUTE_UNUSED X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=821fc4aeef26bc7e5d5943c2f5d009a23e16883c;p=binutils-gdb.git 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 * inflow.c (child_terminal_ours_1): Use ATTRIBUTE_UNUSED. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cef090cc3dc..f5c00726dcb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2016-07-14 Tom Tromey + + * inflow.c (child_terminal_ours_1): Use ATTRIBUTE_UNUSED. + 2016-07-14 Tom Tromey * corefile.c (reopen_exec_file): Only examine st.st_mtime if stat diff --git a/gdb/inflow.c b/gdb/inflow.c index 4cbcd5c74e6..27ce0b04358 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)