__main?

Axel Kittenberger Anshil@gmx.net
Fri Jan 26 03:40:00 GMT 2001


> > Hmmm gcc, did not protest when I called main();....
> 
> Not even with -W -Wall -ansi -pedantic?

Okay throwed together following stuff:
------------------------test.c--------------------------
#include <stdio.h>          

int main(int argc, char **argv) 
{
  char *args[] = {"IT'S ME", 0};
  if (argc == 1) 
    main(2, args);
  else if (argc == 2) {
    printf(argv[0]);	
  }
  return 0;
}
-----------------------------------------------------------------------
$ gcc test.c -W -Wall -ansi -pedantic
it compiled completly silenty.... (2.95.2 on a cygwin host)

- Axel

-- 
Sent through GMX FreeMail - http://www.gmx.net


More information about the Gcc-help mailing list