* [PATCH] Fix compilation warning in testsuite/gdb.base/unload.c
@ 2004-08-15 12:06 Mark Kettenis
2004-08-15 15:19 ` Michael Chastain
0 siblings, 1 reply; 2+ messages in thread
From: Mark Kettenis @ 2004-08-15 12:06 UTC (permalink / raw)
To: gdb-patches
On my i386-unknown-freebsd4.7 system the prototype for dlerror() is
const char *dlerror (void);
This makes GCC issue a warning, which in turn makes the test fail.
The attached patch is obvious I think, so I committed it.
Tested on i386-unknown-freebsd4.7.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* gdb.base/unload.c (main): Make local variable msg const.
Index: gdb.base/unload.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/unload.c,v
retrieving revision 1.1
diff -u -p -r1.1 unload.c
--- gdb.base/unload.c 12 Aug 2004 20:22:59 -0000 1.1
+++ gdb.base/unload.c 15 Aug 2004 10:18:47 -0000
@@ -28,7 +28,7 @@ int main()
void *handle;
int (*unloadshr) (int);
int y;
- char *msg;
+ const char *msg;
handle = dlopen (SHLIB_NAME, RTLD_LAZY);
msg = dlerror ();
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix compilation warning in testsuite/gdb.base/unload.c
2004-08-15 12:06 [PATCH] Fix compilation warning in testsuite/gdb.base/unload.c Mark Kettenis
@ 2004-08-15 15:19 ` Michael Chastain
0 siblings, 0 replies; 2+ messages in thread
From: Michael Chastain @ 2004-08-15 15:19 UTC (permalink / raw)
To: kettenis, gdb-patches
Cool, thanks.
> Index: ChangeLog
> from Mark Kettenis <kettenis@gnu.org>
>
> * gdb.base/unload.c (main): Make local variable msg const.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-08-15 15:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-15 12:06 [PATCH] Fix compilation warning in testsuite/gdb.base/unload.c Mark Kettenis
2004-08-15 15:19 ` Michael Chastain
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox