This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ada/21053] Warnings from init.c


------- Additional Comments From laurent at guerby dot net  2005-04-16 07:38 -------
Could you try the obvious patch below?
It looks like the same problem as  PR ada/17527
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17527
which was fixed the same way a while ago.

I believe you can commit as obvious once tested.

There are other occurence of the same code for other target, but I don't have
access to them, may be Arnaud?

Index: init.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/init.c,v
retrieving revision 1.47
diff -u -r1.47 init.c
--- init.c      10 Apr 2005 17:38:53 -0000      1.47
+++ init.c      16 Apr 2005 07:34:39 -0000
@@ -603,7 +603,7 @@
 __gnat_error_handler (int sig, siginfo_t *siginfo, void *ucontext)
 {
   struct Exception_Data *exception;
-  char *msg;
+  const char *msg;

   switch (sig)
     {


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |charlet at adacore dot com
           Keywords|                            |build, patch


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21053


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]