Function declaration issues

Nikita Shulga malfet@jscc.ru
Thu Sep 4 15:52:00 GMT 2003


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



More information about the Gcc mailing list