Add one use of ATTRIBUTE_UNUSED
authorTom Tromey <tom@tromey.com>
Mon, 6 Jun 2016 19:43:50 +0000 (13:43 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 14 Jul 2016 16:35:37 +0000 (10:35 -0600)
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.

gdb/ChangeLog
gdb/inflow.c

index cef090cc3dce267effa958c41b0cc97ece0fb1a2..f5c00726dcb1e6117f80319cada40b736699615e 100644 (file)
@@ -1,3 +1,7 @@
+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
index 4cbcd5c74e691e8558c8088b2ad795c604006e51..27ce0b04358f2a94276db38760c3610d16c5c4b6 100644 (file)
@@ -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)
This page took 0.063121 seconds and 4 git commands to generate.