Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jun 2009 20:43:59 -0700
From:      Tim Kientzle <kientzle@freebsd.org>
To:        Sam Leffler <sam@freebsd.org>
Cc:        Roman Divacky <rdivacky@freebsd.org>, current@freebsd.org
Subject:   Re: [RFC]: (void)0 instead of empty defines
Message-ID:  <4A3714FF.7050608@freebsd.org>
In-Reply-To: <4A369529.5090004@freebsd.org>
References:  <20090615181555.GA52009@freebsd.org> <4A369529.5090004@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> Are you saying that:
> 
> if (cond)
>    ;
> 
> is considered worthy of a warning by the compiler?

Yes, especially when it's written as:

    if (rare_condition);
        do_something_dangerous();

Tim




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A3714FF.7050608>