This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[Patch] Fix warning in elf/tst-relsort1.c
- From: Andreas Jaeger <aj at suse dot de>
- To: libc-alpha at sourceware dot org
- Date: Thu, 17 May 2012 22:01:42 +0200
- Subject: [Patch] Fix warning in elf/tst-relsort1.c
I've comitted the appended patch as obvious to fix:
tst-relsort1.c:6:1: warning: function declaration isnât a prototype [-Wstrict-prototypes]
Tested on Linux/x86-64,
Andreas
2012-05-17 Andreas Jaeger <aj@suse.de>
* elf/tst-relsort1.c (do_test): Fix function declaration to avoid
warning.
diff --git a/elf/tst-relsort1.c b/elf/tst-relsort1.c
index 972100c..a87b138 100644
--- a/elf/tst-relsort1.c
+++ b/elf/tst-relsort1.c
@@ -3,7 +3,7 @@
static int
-do_test ()
+do_test (void)
{
const char lib[] = "$ORIGIN/tst-relsort1mod1.so";
void *h = dlopen (lib, RTLD_NOW);
--
Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 NÃrnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix ImendÃrffer,HRB16746 (AG NÃrnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126