DragonFly users List (threaded) for 2009-02
DragonFly BSD
DragonFly users List (threaded) for 2009-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: tree.h RB_AUGMENT empty body warning


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 18 Feb 2009 11:36:41 -0800 (PST)

:
:On Wed, Feb 18, 2009 at 10:49:29PM +1100, Dmitri Nikulin wrote:
:> #define RB_AUGMENT(x) ((void)x)
:
:Replace that with 
:#define RB_AUGMENT(x) do { (void)x; } while (0)
:
:Joerg

    I really don't like this idea.  Adding braces and dummy do/while,
    but I don't like casting the passed expression to void simply as
    a means of avoiding a compiler warning.

    What is this RB_AUGMENT stuff used for anyway?  It looks to me like
    it should just be removed.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>



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