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

Andrew Pinski pinskia@physics.uc.edu
Tue Aug 8 20:48:00 GMT 2006


> 
> 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



More information about the Gcc-help mailing list