From: Roland McGrath Date: Wed, 7 Nov 2012 17:33:11 +0000 (+0000) Subject: gold/ X-Git-Tag: binutils-2_23_1~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cdfb0899cd5207ef097890704e6d51e76665a294;p=thirdparty%2Fbinutils-gdb.git gold/ * descriptors.cc (set_close_on_exec): Add ATTRIBUTE_UNUSED to the parameter, which is unused in the [!F_SETFD] case. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index 4a2f7457c97..f51dfeb7974 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,5 +1,8 @@ 2012-11-07 Roland McGrath + * 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. diff --git a/gold/descriptors.cc b/gold/descriptors.cc index 2ab0d5c8816..f3f071e32b2 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 . // 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