From: Ole Laursen <98zOLaw AT mail DOT aalborghus DOT dk> Newsgroups: comp.os.msdos.djgpp Subject: How to kill off "value compu..." warning Date: Thu, 29 Oct 1998 15:53:03 +0100 Organization: Aalborghus Gymnasium Lines: 28 Message-ID: <3638814E.EF94334D@mail.aalborghus.dk> NNTP-Posting-Host: 195.192.19.164 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.net.uni-c.dk 909672795 29356 (None) 195.192.19.164 X-Complaints-To: usenet AT news DOT net DOT uni-c DOT dk X-Mailer: Mozilla 4.03 [da] (WinNT; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi. I've made a structure with an appropriate constructor in c++ and use the 'new' to allocate a few of them dynamically, like: void my_func() { new my_object(10,20); new my_object(30,40); } I compile using the -Wall switch, so the compiler correctly tells me that "value computed is not used", but I don't have anything to use it for, as the constructor will take care off putting the pointer to the struct in the right list. Believe me, it can be very annoying to get ten of those warnings every time I recompile the code, so I just wondered if it is somehow possible to turn off the warning for only a few lines of code (I don't want to disable it entirely), or to fix the problem in another way (I suspect I might be doing something wrong by just ignoring the return value). -- - Ole Laursen - Aalborghus Gymnasium - 98zOLaw AT aalborghus DOT dk - Remember, no questions are stupid - some are just easier to answer than others ;-)