HomeFreeBSD

rtld-elf: Mark tls_init_align __unused in free_tls for Variant I TLS.

Description

rtld-elf: Mark tls_init_align __unused in free_tls for Variant I TLS.

Some architectures (powerpc and RISC-V) always use 0 for the post TLS
size in which case tls_init_align isn't used by
calculate_tls_post_size. Use __unused to quiet the warning for these
platforms.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D40673

Details

Provenance
jhbAuthored on Jun 20 2023, 7:38 PM
Reviewer
kib
Differential Revision
D40673: rtld-elf: Mark tls_init_align __unused in free_tls for Variant I TLS.
Parents
rG3456659866b6: jail: Mute -Wunused-but-set-variable for yynerrs.
Branches
Unknown
Tags
Unknown