From: Jim Wilson <wilson@cygnus.com>
To: egcs@cygnus.com
Subject: Re: Huh?
Date: Fri, 29 Aug 1997 21:09:16 -0000 [thread overview]
Message-ID: <199708292109.VAA18286@chestnut.cygnus.com> (raw)
In-Reply-To: Huh?
I submitted some patches, some time ago, to add warnings for non-int-main.
They have all been changed to "pedwarn".
All of my belief that "-pedantic" should be the default aside, this is
Just Plain Wrong.
I think you are confused by the difference between `warn' and `pedwarn'.
Both of then give a warning always, so the change is harmless as far as you
are concerned. -Wmain will still always give a warning.
The difference between `warn' and `pedwarn' is that pedwarn gives an
error if -pedantic-errors is used. This may not be what you intended, but
it is a separate problem from what you are complaining about.
If you want to give a warning only when -fpedantic, then you must use
if (pedantic)
pedwarn (...);
Jim
next reply other threads:[~1997-08-29 21:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-08-29 21:09 Jim Wilson [this message]
[not found] <435ded07.362ec94c@aol.com>
1998-10-22 21:15 ` Huh? Randy Joiner
1998-10-23 14:37 ` Huh? Martin von Loewis
1998-10-24 12:12 ` Huh? Joe Buck
-- strict thread matches above, loose matches on Subject: below --
1998-10-21 19:20 Huh? TTK Ciar
1998-10-21 11:41 Huh? Randy Joiner
1998-10-21 22:10 ` Huh? Per Bothner
1997-08-22 19:23 Huh? Peter Gerwinski
1997-08-19 17:54 Huh? Peter Seebach
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=199708292109.VAA18286@chestnut.cygnus.com \
--to=wilson@cygnus.com \
--cc=egcs@cygnus.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).