|
Boost Users : |
From: Sohail Somani (s.somani_at_[hidden])
Date: 2005-06-30 12:36:14
> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Paul Johnson
> Sent: Thursday, June 30, 2005 6:20 AM
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] supressing "extra ;" warnings with GCC 3.4
>
>
> David Abrahams wrote:
> > Dave Steffen <dgsteffen_at_[hidden]> writes:
> >
> >
> >> I claim that our macros and use thereof is A) correct and
> B) safe. It
> >> just so happens that these macro constructs occasionally expand to
> >> something that has an extra semicolon, which triggers a warning in
> >> GCC 3.4 that we haven't seen before.
> >
> >
> > The warning will be an error on other compilers. The semicolons
> > aren't just "bad style;" they're illegal.
>
> Uhh... why? Example?
I believe extra semicolons are illegal after namespace declarations and
function definitions atleast. A semicolon in a function is an empty
statement which is legal.
Disclaimer: I am not a language lawyer, I just play one on email.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net