[binutils-gdb] PR 33995 compile failure on DEC Alpha OpenBSD 7.8
Alan Modra via Binutils-cvs <[email protected]>
| Newsgroups | gmane.comp.gnu.binutils.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=fb0161cc6ac42df3d534e76a6ff50bdc7a6937ed commit fb0161cc6ac42df3d534e76a6ff50bdc7a6937ed Author: Alan Modra <[email protected]> Date: Tue Mar 17 10:31:58 2026 +1030 PR 33995 compile failure on DEC Alpha OpenBSD 7.8 The args are only used inside #ifdef TLS. PR 33995 * bfd.c (bfd_thread_init): Add ATTRIBUTE_UNUSED on args. Diff: --- bfd/bfd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bfd/bfd.c b/bfd/bfd.c index e97503c7a81..31c70890ad9 100644 --- a/bfd/bfd.c +++ b/bfd/bfd.c @@ -2073,8 +2073,9 @@ DESCRIPTION */ bool -bfd_thread_init (bfd_lock_unlock_fn_type lock, bfd_lock_unlock_fn_type unlock, - void *data) +bfd_thread_init (bfd_lock_unlock_fn_type lock ATTRIBUTE_UNUSED, + bfd_lock_unlock_fn_type unlock ATTRIBUTE_UNUSED, + void *data ATTRIBUTE_UNUSED) { #ifdef TLS /* Both functions must be set, and this cannot have been called