Re: [code] typedef problem

From: Brian Gray (mandy@NETCOM.COM)
Date: 08/31/97


On Sun, 31 Aug 1997, Erwin S. Andreasen wrote:

> On Sun, 31 Aug 1997, Brian Gray wrote:
>
> > C++ is pickier than C.
> [...]
> > put a dummy int in the prototype and you should be ok.  If you get an
> > unused parameter warning just put the variable in the following macro:
> >
> > #define UNUSED(x) ((x)=(x))
>
> Actually, you can leave out the argument name in the function definition
> to tell the compiler that it is intentional that this argument is unused.

Yeah, you're absolutely right.  I just had the UNUSED() macro lying
around because of all those damn ACMD()'s and SPECIAL()'s.  Can't change
the function definitions of those.

 -- Brian


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST