Re: linux headers and C++

Richard B. Johnson (root@chaos.analogic.com)
Fri, 2 Jul 1999 08:28:18 -0400 (EDT)


On Fri, 2 Jul 1999, Tom Eastep wrote:
> "Richard B. Johnson" wrote:
[SNIPPED]

> > On Thu, 1 Jul 1999, Ronnie G Misra wrote:
> > > root@chaos.analogic.com wrote:
[SNIPPED]

>
> Our C++ compiler gives a warning "expected a statement" but produces a
> binary.
>
> Inserting ";" after "default:" removes the warning.
>
> -Tom
> --
> Tom Eastep
> Compaq Computer Corporation
> Tandem Division
> tom.eastep@compaq.com
>

Yes, gcc complains about a 'label' in a compound statement. My VAX/C
compiler doesn't complain although it probably isn't strict ANSI.
Both M$ and Borland complain if the warning level is high enough, but
produce objects.

Cheers,
Dick Johnson
***** FILE SYSTEM WAS MODIFIED *****
Penguin : Linux version 2.2.6 on an i686 machine (400.59 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/