Mail Archives: djgpp/2000/01/13/13:27:29
Why do I see something like this:
void
main (argc, argv)
int argc;
char **argv;
in some GNU packages (i.e., `void main' rather than `int main')? Is it
for some obscure backwards compatibility? I didn't get any complaints
about this with my djgpp/gcc setup (but is that good or bad?, but my
Solaris box at work complains, as follows:
time.c: In function `main':
time.c:633: warning: return type of `main' is not `int'
make: *** [time.o] Error 1
Duh. Easy to fix, but why is it `void main' in the first place?
TIA---jtw
- Raw text -