gratuitous gcc warnings: unused function arguments?

Alexey Dokuchaev danfe at nsu.ru
Tue Jan 18 00:31:22 PST 2005


On Sun, Jan 16, 2005 at 04:41:13PM +0200, Giorgos Keramidas wrote:
> 
> This allows the main() function to keep being compliant with the ANSI
> standard that specifies only two valid prototypes for main():
> 
> 	int main(void);
> 	int main(int argc, char *argv[]);

Hmm, I might sound wrong, but I also recall seeing ``int main(int argc,
char *argv[], char *envp[]);'' as valid main() prototype as well.

./danfe


More information about the freebsd-current mailing list