lkml.org 
[lkml]   [1999]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: linux headers and C++
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:52    [W:3.146 / U:0.256 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site