apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: Thread pool prototype
Date Wed, 03 May 2006 16:55:41 GMT
Greg Marr wrote:
> 
> I mostly work on Windows, and VC++ only recently added a warning for 
> that.  I've been using this style for so long that it doesn't sacrifice 
> readability, and in fact, the var == const form looks wrong now.  
> However, this is entirely a personal preference.

Really?  It's screamed at me for 15 years.  Perhaps I was running at
a different warning level, though.

if ((that = assign))

or

if ((that = assign) != NULL)

quiets the error on Windows.  Dunno - same for gcc?

Mime
View raw message