Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #147462
| Newsgroups | comp.lang.c |
|---|---|
| From | DFS <nospam@dfs.com> |
| Subject | Why does 'gcc -Wall' complain about void main() ? |
| Message-ID | <5fXuF.717$gt2.335@fx02.iad> (permalink) |
| Organization | blocknews - www.blocknews.net |
| Date | 2019-11-01 10:22 -0400 |
gcc 9.1.0 on MSYS2
combinearrays.c:14:6: warning: return type of ‘main’ is not ‘int’ [-Wmain]
14 | void main() {
| ^~~~
Aside: gcc is more colorful and informative than I remember
notes in light blue
errors in red
warnings in purple
data types in green
https://imgur.com/a/xcbp2Lg
Back to comp.lang.c | Previous | Next — Next in thread | Find similar | Unroll thread
Why does 'gcc -Wall' complain about void main() ? DFS <nospam@dfs.com> - 2019-11-01 10:22 -0400
Re: Why does 'gcc -Wall' complain about void main() ? David Brown <david.brown@hesbynett.no> - 2019-11-01 15:45 +0100
Re: Why does 'gcc -Wall' complain about void main() ? Manfred <noname@add.invalid> - 2019-11-01 17:57 +0100
Re: Why does 'gcc -Wall' complain about void main() ? Keith Thompson <kst-u@mib.org> - 2019-11-01 10:31 -0700
Re: Why does 'gcc -Wall' complain about void main() ? Manfred <noname@add.invalid> - 2019-11-01 21:00 +0100
Re: Why does 'gcc -Wall' complain about void main() ? David Brown <david.brown@hesbynett.no> - 2019-11-01 21:20 +0100
Re: Why does 'gcc -Wall' complain about void main() ? Keith Thompson <kst-u@mib.org> - 2019-11-01 10:25 -0700
csiph-web