Re: Gcc extension: have a semicolon after a function definition ??

2006-08-08 Thread Michael Gong
quot;Michael Gong" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; Sent: Tuesday, August 08, 2006 4:34 PM Subject: Re: Gcc extension: have a semicolon after a function definition ?? Hi, I am wondering why following program is compiled successfully by gcc ? Please notice there is a &quo

Re: Gcc extension: have a semicolon after a function definition ??

2006-08-08 Thread Andrew Pinski
> > Hi, > > I am wondering why following program is compiled successfully by gcc ? > Please notice there is a ";" after the function definition. > > Is there a gcc extension for it ? Yes, use -pedantic-errors for showing if it is a GCC extension or not. -- Pinski

Gcc extension: have a semicolon after a function definition ??

2006-08-08 Thread Michael Gong
Hi, I am wondering why following program is compiled successfully by gcc ? Please notice there is a ";" after the function definition. Is there a gcc extension for it ? /* foo.c */ int main() { printf("hello world\n"); } ; Thanks. Michael