This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Function declaration issues


Hi!
Sorry for nospam post - I were notified, that my e-mail,due to domain 
restrictions,  were rejected because it doesn't have 'nospam' word in 
subject..
On Thursday 04 September 2003 18:46 Andrew Pinski wrote
> Because in C, a function declared as () means any number of arguments,
> this goes back to K&R C.

[nik@bertha:~> gcc -Wall -std=c99 test.c
[nik@bertha:~>
In ISO 9899-C99 standart it is said, that () is a decparation, but not a 
prototype. It doesn't said, that it is obsolete, and there is not a word 
about K&R.
Of course, I can misunderstand what the meaning of word declaration, but, if 
you comment out declaration, or define the prototype, then warnings and 
errors will appear.
Best,
        Nikita


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]