aboutsummaryrefslogtreecommitdiff
path: root/stdio-common
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@redhat.com>2024-11-15 22:43:54 +0000
committerMaciej W. Rozycki <macro@redhat.com>2024-11-15 22:43:54 +0000
commitce13ab503375d6db3d97fe19c6ccf229330d3988 (patch)
treeeec6a721658b31006cdba66e7862a0ee1687bd25 /stdio-common
parent6c915c73d08028987232f6dc718f218c61113240 (diff)
downloadglibc-ce13ab503375d6db3d97fe19c6ccf229330d3988.zip
glibc-ce13ab503375d6db3d97fe19c6ccf229330d3988.tar.gz
glibc-ce13ab503375d6db3d97fe19c6ccf229330d3988.tar.bz2
stdio-common: Fix C23-ism in formatted output specifier tests [BZ #32360]
Nameless function parameters have only been added to ISO C with the C23 revision of the language standard. Give names to the unused parameters of the stub 'dladdr' implementation then so as to make compilation happy with the earlier language definitions, fixing errors such as: tst-printf-format-skeleton.c:374:9: error: parameter name omitted 374 | dladdr (const void *, Dl_info *) reported by older compilers. Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/tst-printf-format-skeleton.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdio-common/tst-printf-format-skeleton.c b/stdio-common/tst-printf-format-skeleton.c
index e564d3a..439fd78 100644
--- a/stdio-common/tst-printf-format-skeleton.c
+++ b/stdio-common/tst-printf-format-skeleton.c
@@ -371,7 +371,7 @@ do_test (int argc, char *argv[])
/* Interpose 'dladdr' with a stub to speed up malloc tracing. */
int
-dladdr (const void *, Dl_info *)
+dladdr (const void *addr, Dl_info *info)
{
return 0;
}