public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Florian Weimer <fw@deneb.enyo.de>
To: Neil Booth <neil@daikokuya.demon.co.uk>
Cc: guerby@acm.org,  dave@hiauly1.hia.nrc.ca,  gcc-patches@gcc.gnu.org
Subject: Re: [Ada] Trivial fix for warning in utils.c
Date: Tue, 13 Nov 2001 15:03:00 -0000	[thread overview]
Message-ID: <87herub7sa.fsf@deneb.enyo.de> (raw)
In-Reply-To: <20011116203549.A1506@daikokuya.demon.co.uk> (Neil Booth's message of "Fri, 16 Nov 2001 20:35:49 +0000")

Neil Booth <neil@daikokuya.demon.co.uk> writes:

> Using PARAMS ((void)) is fine whatever your compiler; on K & R it expands
> to () and for ANSI compilers it becomes (void).

I think for strict C89 compilers, it has to become (), too, because
you cannot mix prototypes and old-style function definitions there.

I'm not sure whether C99 compilers have to reject such code or not, or
may silently generate code which does not work as intended.

  reply	other threads:[~2001-11-16 23:22 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-13 15:03 John David Anglin
2001-11-13 15:03 ` guerby
2001-11-13 15:03   ` Neil Booth
2001-11-13 15:03     ` Florian Weimer [this message]
2001-11-13 15:03 Richard Kenner
2001-11-13 15:03 Richard Kenner
2001-11-13 15:03 Richard Kenner
2001-11-13 15:03 Richard Kenner
2001-11-13 15:03 ` guerby
2001-11-13 15:03 guerby
2001-11-13 15:03 ` Graham Stott
2001-11-13 15:03   ` guerby
2001-11-13 15:03     ` Florian Weimer
2001-11-13 15:03     ` Mark Mitchell

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=87herub7sa.fsf@deneb.enyo.de \
    --to=fw@deneb.enyo.de \
    --cc=dave@hiauly1.hia.nrc.ca \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=guerby@acm.org \
    --cc=neil@daikokuya.demon.co.uk \
    /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).