From: Alexandre Oliva <oliva@dcc.unicamp.br>
To: mrs@wrs.com (Mike Stump)
Cc: egcs@cygnus.com, jinbo21@soback.kornet.nm.kr
Subject: Re: warning: return type of main is not int
Date: Mon, 19 Jan 1998 02:30:00 -0000 [thread overview]
Message-ID: <oru3b17p0d.fsf@amazonas.dcc.unicamp.br> (raw)
In-Reply-To: <199801170153.RAA00076@kankakee.wrs.com>
Mike Stump writes:
>> From: Byeong-ryeol Kim <jinbo21@soback.kornet.nm.kr>
>> I often met this warning after installing egcs on rh 5.0.
>> Is this harmless?
>> void main(int argc, char *argv[])
> return 0, if you don't know of a
> better value to return.
In fact, you don't even have to bother about returning anything, since
falling off function `main' is equivalent to returning 0, as defined
in [basic.start.main]/5
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil
next prev parent reply other threads:[~1998-01-19 2:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-01-16 19:49 Mike Stump
1998-01-19 2:30 ` Alexandre Oliva [this message]
-- strict thread matches above, loose matches on Subject: below --
1998-01-16 1:51 Byeong-ryeol Kim
1998-01-16 19:49 ` Joe Buck
1998-01-16 20:09 ` Byeong-ryeol Kim
1998-01-16 20:09 ` Joe Buck
1998-01-17 1:40 ` Joseph H. Buehler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=oru3b17p0d.fsf@amazonas.dcc.unicamp.br \
--to=oliva@dcc.unicamp.br \
--cc=egcs@cygnus.com \
--cc=jinbo21@soback.kornet.nm.kr \
--cc=mrs@wrs.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).