gold/
authorRoland McGrath <roland@gnu.org>
Thu, 1 Nov 2012 22:43:26 +0000 (22:43 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 1 Nov 2012 22:43:26 +0000 (22:43 +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 af6c4f5..176e191 100644 (file)
 
        * nacl.cc: Include "libiberty.h" for vasprintf declaration.
 
+2012-11-01  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.
+
 2012-10-30  Steve McIntyre  <steve.mcintyre@linaro.org>
 
        * gold.cc (Target_arm::do_adjust_elf_header): Add the
index 2ab0d5c..f3f071e 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