aboutsummaryrefslogtreecommitdiff
path: root/gold/descriptors.cc
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2012-11-01 22:43:26 +0000
committerRoland McGrath <roland@gnu.org>2012-11-01 22:43:26 +0000
commit3e536b9a7a315d2eec69ff06ff9bb678aad66660 (patch)
treed40fbd330828d6515d2b1bf836ef2a928a9ad114 /gold/descriptors.cc
parent50ed5eb142b3246bd16be9626f0cf9565f44d8f9 (diff)
downloadgdb-3e536b9a7a315d2eec69ff06ff9bb678aad66660.zip
gdb-3e536b9a7a315d2eec69ff06ff9bb678aad66660.tar.gz
gdb-3e536b9a7a315d2eec69ff06ff9bb678aad66660.tar.bz2
gold/
* descriptors.cc (set_close_on_exec): Add ATTRIBUTE_UNUSED to the parameter, which is unused in the [!F_SETFD] case.
Diffstat (limited to 'gold/descriptors.cc')
-rw-r--r--gold/descriptors.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/descriptors.cc b/gold/descriptors.cc
index 2ab0d5c..f3f071e 100644
--- a/gold/descriptors.cc
+++ b/gold/descriptors.cc
@@ -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