Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!gatech!galbp!bwilab3!brad From: brad@bwilab3.UUCP (Bradley Ward) Newsgroups: comp.lang.c++ Subject: What do I do with unused arguments? Keywords: X windows, callbacks Message-ID: <133@bwilab3.UUCP> Date: 8 Dec 90 01:38:38 GMT Organization: Bradley Ward Inc., Atlanta, Ga Lines: 15 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. (I hope the optimizer is smart enought to take this out!). Any ideas on how to handle this more elegantly ? Bradley Ward Phone: 404-396-4292 BRADLEY WARD, INC. FAX: 404-396-6509 5901-A Peachtree Dunwoody Road, N.E. Suite 415 Atlanta, Georgia 30328 ...!uunet!gatech!galbp!bwilab3!brad