From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18183 invoked by alias); 15 Aug 2004 12:06:05 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 18175 invoked from network); 15 Aug 2004 12:06:03 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (213.93.77.109) by sourceware.org with SMTP; 15 Aug 2004 12:06:03 -0000 Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2]) by walton.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i7FC60h7001842 for ; Sun, 15 Aug 2004 14:06:00 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i7FC60Kg049706 for ; Sun, 15 Aug 2004 14:06:00 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6/Submit) id i7FC60HG049703; Sun, 15 Aug 2004 14:06:00 +0200 (CEST) Date: Sun, 15 Aug 2004 12:06:00 -0000 Message-Id: <200408151206.i7FC60HG049703@elgar.kettenis.dyndns.org> From: Mark Kettenis To: gdb-patches@sources.redhat.com Subject: [PATCH] Fix compilation warning in testsuite/gdb.base/unload.c X-SW-Source: 2004-08/txt/msg00524.txt.bz2 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 * 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 ();