On Mon Jan 31 11, Roman Divacky wrote:
> no problem with this with clang :)
hmmmmm....so compiling the following code
int
main(int argc, char **argv)
{
if (1<2)
;
}
with clang -Werror code.c -o code works for you?
cheers.
alex
>
> On Sun, Jan 30, 2011 at 05:29:41PM +0000, Alexander Best wrote:
> > hi there,
> >
> > i noticed freebsd has a few of the following macros:
> >
> > #define FUNC(sb)
> >
> > when you do something like
> >
> > if (cond)
> > FUNC(i)
> >
> > the compiler complains about an if statement with an empty body. any
> > sensible
> > way of dealing with this issue?
> >
> > i saw some reiserfs code which does the following to silence compilers:
> >
> > #define FUNC(sb) do { } while (0)
> >
> > cheers.
> > alex
> >
> > --
> > a13x
> > _______________________________________________
> > [email protected] mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> > To unsubscribe, send any mail to "[email protected]"
--
a13x
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[email protected]"