]> git.ipfire.org Git - thirdparty/glibc.git/commit
elf: Suppress unused function clang for __ifunc_resolver
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 3 Jan 2025 11:33:16 +0000 (08:33 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 13 Jan 2025 13:17:42 +0000 (10:17 -0300)
commit6a498d780e6fd3b7db7575c4ec00c00dc8568fef
tree8202027761b9dc487362411a0c09a852a4e7ac8a
parentf28702b2eead1c65292c4fc84ecade2be201de0e
elf: Suppress unused function clang for __ifunc_resolver

The __ifunc_resolver macro expands to:

  extern __typeof (__redirect_name) name __attribute__ ((ifunc ("iname_ifunc")));
  static __typeof (__redirect_name) *name_ifunc (void) { [...] };

And although NAME_IFUNC is and alias for NAME, clang-18 still emits
an 'unused function 'name_ifunc' [-Werror,-Wunused-function]'
warning.
elf/ifuncmain9.c
elf/tst-ifunc-fault-lazy.c