bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/3] ipc: avoid dereference of null pointer and quiet the GCC


From: Marin Ramesa
Subject: Re: [PATCH 1/3] ipc: avoid dereference of null pointer and quiet the GCC warning about uninitialized variable
Date: Wed, 18 Dec 2013 12:15:32 +0100

On 18.12.2013 12:00:49, Richard Braun wrote:
> On Wed, Dec 18, 2013 at 11:40:09AM +0100, Marin Ramesa wrote:
> > On 18.12.2013 11:34:03, Richard Braun wrote:
> > > I don't get this warning, can you tell us how you configure GNU 
> > > Mach ?
> > 
> > --enable-kdb --prefix=
> > 
> > But the warning is turned off by: 
> > 
> > ipc_port_t notify_port = 0;
> > 
> > in ipc/ipc_kmsg.c.
> > 
> > I don't think that's a good solution. I think something else is 
> > happening here.
> 
> How can a local variable in ipc_kmsg.c have any effect on another
> local variable in ipc_entry.c ??

Yes, my change doesn't clear the warning. I forgot to do 'make clean' 
and rebuild. The patch is completely wrong.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]