diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-09-10 05:16:07 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-09-10 05:16:07 +0000 |
commit | a54c7058f3818ea10d31f17807076d077412f922 (patch) | |
tree | 692fc223ad17d64eef9166f212e33a6b79bdb505 /gnu/usr.bin/binutils-2.17 | |
parent | 050db7101f37c5a40cfacc1fe8616cff5f96fb0d (diff) |
use an unused attribute on a function argument to avoid -Wself-assign
with clang
ok guenther@
Diffstat (limited to 'gnu/usr.bin/binutils-2.17')
-rw-r--r-- | gnu/usr.bin/binutils-2.17/ld/emultempl/elf32.em | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gnu/usr.bin/binutils-2.17/ld/emultempl/elf32.em b/gnu/usr.bin/binutils-2.17/ld/emultempl/elf32.em index 01dd3629f13..9fc5229bdcf 100644 --- a/gnu/usr.bin/binutils-2.17/ld/emultempl/elf32.em +++ b/gnu/usr.bin/binutils-2.17/ld/emultempl/elf32.em @@ -1541,7 +1541,8 @@ cat >>e${EMULATION_NAME}.c <<EOF static bfd_boolean gld${EMULATION_NAME}_open_dynamic_archive - (const char *arch, search_dirs_type *search, lang_input_statement_type *entry) + (const char *arch __unused, search_dirs_type *search, + lang_input_statement_type *entry) { const char *filename; char *string; @@ -1558,8 +1559,6 @@ case ${target} in string = gld${EMULATION_NAME}_search_dir(search->name, filename, -1, -1); if (string == NULL) return FALSE; - - arch = arch; /* gcc -Werror */ EOF ;; *) |