[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] Found a warning in libevent 2.0.21



On Thu, Aug 29, 2013 at 4:47 PM, Ralph Castain <rhc@xxxxxxxxxxxx> wrote:
> Just updated to gcc 4.7.3 and got this warning
>
> evutil_rand.c: In function 'ev_arc4random_buf':
> evutil_rand.c:73:21: warning: the comparison will always evaluate as 'true' for the address of 'arc4random_buf' will never be NULL [-Waddress]
>
>

Hm.  The problem is, that check is necessary on some platforms.  I
wonder if we can write it in such a way that the compiler doesn't
complain?  (See the comment.)

I guess we could make the check there OSX-only?

yrs,
-- 
Nick
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.