Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!julius.cs.uiuc.edu!zaphod.mps.ohio-state.edu!ub!uhura.cc.rochester.edu!rochester!cornell!uw-beaver!zephyr.ens.tek.com!tektronix!sequent!mntgfx!jbate From: jbate@mentor.com (John Bate) Newsgroups: comp.lang.c++ Subject: Re: Can I turn off specific "not used" warnings in cfront? Message-ID: <1990Nov16.222431.24880@mentor.com> Date: 16 Nov 90 22:24:31 GMT References: <1084@ntpal.UUCP> <878@elan.Elan.COM> Organization: engr Lines: 43 In article <878@elan.Elan.COM> tom@elan.Elan.COM (Thomas Smith) writes: >From article <1084@ntpal.UUCP>, by herrage@ntpal.UUCP (Robert Herrage): >> >> >> I'm sending this a different way since the first way hasn't been >> working very well. So, if you're getting this again, I apologize. >> >> Yes! You can eliminate the "not used" warnings! Below is a simple >> example: >> >> void funcname( >> int x; >> int y; >> int z ) >> { >> x,y; // this will eliminate the "not used" warnings >> >> printf( "%d", z ); >> >> } Here is another way: void funcname( const char *a, long i, char *b ) { (const void *) a; (void) i; (void *) b; // do something here } Hope this helps. -- John Bate, Mentor Graphics Corporation, 8500 S.W. Creekside Pl., Beaverton, OR, 97005-7191, (503) 626-7000