Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <kettenis@chello.nl>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] Fix compilation warning in testsuite/gdb.base/unload.c
Date: Sun, 15 Aug 2004 12:06:00 -0000	[thread overview]
Message-ID: <200408151206.i7FC60HG049703@elgar.kettenis.dyndns.org> (raw)

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 ();


             reply	other threads:[~2004-08-15 12:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-15 12:06 Mark Kettenis [this message]
2004-08-15 15:19 ` Michael Chastain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200408151206.i7FC60HG049703@elgar.kettenis.dyndns.org \
    --to=kettenis@chello.nl \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox