Re: gratuitous gcc warnings: unused function arguments?

From: Alexey Dokuchaev <danfe_at_nsu.ru>
Date: Tue, 18 Jan 2005 14:34:57 +0600
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
Received on Tue Jan 18 2005 - 07:31:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:26 UTC