🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #7934

What does this do?

#7934
From: Chuck Kirschman
Date: Tue, 05 Mar 1996 01:14
25 lines
1068 bytes
I'm working in *somebody else's code*, which I'm sure everyone pretty
much dreads.  I've run across a construct which I don't understand the
purpose of:

void foo(int bar, float *baz)
{
  int x,y;
  
  (void) x;
  (void) y;
  
  [rest of function]
}

The compiler (Watcom 10.5) doesn't like it, but lets it pass.  What exactly
is this doing?  And, more importantly, what is the author trying to acheive?

thanks
chuck

---
Chuck Kirschman                     ckirsch@eng.clemson.edu
http://www.eng.clemson.edu/~ckirsch/
"I don't NEED to compromise my principles, because they don't have the
 slightest bearing on what happens to me anyway." - Calvin
Technical Details
Message-ID: <4hg4hv$iqb@hubcap.clemson.edu>
Path: arc1-ca.pugleaf.net!hubcap.clemson.edu!usenet

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!hubcap.clemson.edu!usenet
From: ckirsch@eng.clemson.edu (Chuck Kirschman)
Newsgroups: comp.os.msdos.programmer,comp.lang.c
Subject: What does this do?
Date: 5 Mar 1996 01:14:39 GMT
Organization: Clemson University College of Engineering
Distribution: world
Message-ID: <4hg4hv$iqb@hubcap.clemson.edu>
Reply-To: ckirsch@eng.clemson.edu
NNTP-Posting-Host: alms.eng.clemson.edu