🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4054

Identifiers in definitions

#4054
From: Adam Winer
Date: Wed, 20 Sep 1995 06:45
19 lines
891 bytes
Are identifiers in definitions required?  That is, is
the following code legit:

int foo(int /* a */, int b);

int foo(int /* a */, int b)
{
  /* do some stuff, obviously without using a */
}

Our compiler (CodeWarrior on the Macintosh) admits this
without a complaint, and it's very handy for removing unused
argument warnings in a very explicit manner, but I'd
obviously be unable to use it in portable code if it were
ruled out by the standard.

Thanks in advance,
Adam Winer
awiner@us.oracle.com
Technical Details
Message-ID: <awiner-1909952245190001@awiner-mac2.us.oracle.com>
Path: arc1-ca.pugleaf.net!awiner-mac2.us.oracle.com!user

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!awiner-mac2.us.oracle.com!user
From: awiner@oracle.com (Adam Winer)
Newsgroups: comp.std.c
Subject: Identifiers in definitions
Date: Tue, 19 Sep 1995 22:45:19 -0800
Organization: Oracle Corporation
Message-ID: <awiner-1909952245190001@awiner-mac2.us.oracle.com>
NNTP-Posting-Host: awiner-mac2.us.oracle.com
X-Newsreader: Value-Added NewsWatcher 2.0b27.1+