🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: What does this do?

#7937
From: Alexander J Russell
Date: Fri, 08 Mar 1996 07:13
37 lines
1550 bytes
In article <4hg4hv$iqb@hubcap.clemson.edu>, ckirsch@eng.clemson.edu says...
>
>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;
>  
these two line appear to do nothing. It looks like it is casting x & y to void 
data type, but not doing anything with it.
>  (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
>
>

-- 
The AnArChIsT! Anarchy! Not Chaos!
aka
Alex Russell
alexad3@iceonline.com
Technical Details
Message-ID: <DnxtED.Kvr@iceonline.com>
Path: arc1-ca.pugleaf.net!news.iceonline.com!Newsposter
References: <4hg4hv$iqb@hubcap.clemson.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer,comp.lang.c
Path: arc1-ca.pugleaf.net!news.iceonline.com!Newsposter
From: alexad3@icebox.iconline.com (Alexander J Russell)
Subject: Re: What does this do?
Content-Type: Text/Plain; charset=US-ASCII
X-Newsreader: WinVN 0.99.7
Reply-To: alexad3@icebox.iceonlie.com
Sender: Newsposter@iceonline.com (Newsposter)
Nntp-Posting-Host: ns.iceonline.com
Organization: ICE Online Internet news
Message-ID: <DnxtED.Kvr@iceonline.com>
References: <4hg4hv$iqb@hubcap.clemson.edu>
Mime-Version: 1.0
Date: Fri, 8 Mar 1996 07:13:25 GMT