/* Obtain the definition of symbol_version_reference. */
#include <libc-symver.h>
+#include <libc-diag.h>
/* When PIC is defined and SHARED isn't defined, we are building PIE
by default. */
# define __ifunc_args(type_name, name, expr, init, ...) \
extern __typeof (type_name) name __attribute__ \
((ifunc (#name "_ifunc"))); \
- __ifunc_resolver (type_name, name, expr, init, static, __VA_ARGS__)
+ DIAG_PUSH_NEEDS_COMMENT_CLANG; \
+ DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunused-function"); \
+ __ifunc_resolver (type_name, name, expr, init, static, __VA_ARGS__); \
+ DIAG_POP_NEEDS_COMMENT_CLANG;
# define __ifunc_args_hidden(type_name, name, expr, init, ...) \
__ifunc_args (type_name, name, expr, init, __VA_ARGS__)