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 11:40:09 +0100

On 18.12.2013 11:34:03, Richard Braun wrote:
> On Wed, Dec 18, 2013 at 11:25:36AM +0100, Marin Ramesa wrote:
> > Yes, vou're right. I got confused. But then something else is
> > happening here. When I write the assertion this way: 
> > 
> > assert((entry == IE_NULL) ||  ((entry != IE_NULL) ? IE_BITS_TYPE
> > (entry->ie_bits) : TRUE));
> > 
> > GCC stops complaing about uninitialized variable.
> 
> 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.


reply via email to

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