]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gold/
authorRoland McGrath <roland@gnu.org>
Wed, 7 Nov 2012 17:33:11 +0000 (17:33 +0000)
committerRoland McGrath <roland@gnu.org>
Wed, 7 Nov 2012 17:33:11 +0000 (17:33 +0000)
* descriptors.cc (set_close_on_exec): Add ATTRIBUTE_UNUSED to the
parameter, which is unused in the [!F_SETFD] case.

gold/ChangeLog
gold/descriptors.cc

index 4a2f7457c9790321336306d00e2a8697cb06d647..f51dfeb79740fde31e729fcd8cdd4a078da8deaa 100644 (file)
@@ -1,5 +1,8 @@
 2012-11-07  Roland McGrath  <mcgrathr@google.com>
 
+       * descriptors.cc (set_close_on_exec): Add ATTRIBUTE_UNUSED to the
+       parameter, which is unused in the [!F_SETFD] case.
+
        * dwarf_reader.cc (Sized_elf_reloc_mapper::symbol_section): Cast
        SYMNDX to off_t before comparing it to this->data_size().
        * output.cc (Output_symtab_xindex::endian_do_write): Likewise.
index 2ab0d5c8816306dd58d561bf69a08e47d0f6ef57..f3f071e32b269feac69082f15c85f580ce0146f0 100644 (file)
@@ -1,6 +1,6 @@
 // descriptors.cc -- manage file descriptors for gold
 
-// Copyright 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
+// Copyright 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
 // Written by Ian Lance Taylor <iant@google.com>.
 
 // This file is part of gold.
@@ -45,7 +45,7 @@
 #endif
 
 static inline void
-set_close_on_exec(int fd)
+set_close_on_exec(int fd ATTRIBUTE_UNUSED)
 {
 // Mingw does not define F_SETFD.
 #ifdef F_SETFD