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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux