Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!att!att!westmark!mole-end!mat From: mat@mole-end.UUCP (Mark A Terribile) Newsgroups: comp.lang.c++ Subject: Re: What do I do with unused arguments? Summary: Is it time to FAQ? Keywords: Arguments-unused, FAQ Message-ID: <455@mole-end.UUCP> Date: 13 Dec 90 16:16:11 GMT References: <133@bwilab3.UUCP> Organization: mole-end--private system. admin: mole-end!newtnews Lines: 21 > When I write a callback routine such as those used by X windows, > many times I don't need to use the "client_data" argument. But > the C++ compiler issues a "unused argument" warning. I hate to > have warnings generated, so I have been doing stuff like putting > the statement "client_data = client_data;" in the callback simply > to eliminate this compiler warning.... It seems to me we've seen this three times in six weeks. comp.lang.c has a Frequently Asked Qestions list that is posted periodically. Is it time for comp.lang.c++ to get a FAQ of its own? If I could promise the time to do it, I'd volunteer. For the present, I can't. But if anyone would like to, here's one reader who would be grateful. Oh, the correct answer to the question is ReadTheFructatingManual! The useful answer is `Omit the argument name in the argument list, but leave the type (as though you were casting).' -- (This man's opinions are his own.) From mole-end Mark Terribile