Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!ncar!boulder!stan!starwolf!reb From: reb@starwolf.Solbourne.COM (Roy Binz) Newsgroups: comp.lang.c++ Subject: Re: Can I turn off specific "not used" warnings in cfront? Message-ID: <1990Nov14.152103.10732@Solbourne.COM> Date: 14 Nov 90 15:21:03 GMT Sender: news@Solbourne.COM Organization: Solbourne Computer, Inc. Lines: 33 > 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 ); > > } Actually, it is even easier than that! Using your example: void funcname( int /* x */, // This may look strange, but it works int /* y */, // and it is intended to be this way! int z ) { printf( "%d", z ); } You can also completely omit the parameter names, but my experience has been that leaving them in helps other people who have to read the code. Roy Binz -- Roy Binz Solbourne Computer Inc. Domain: reb@Solbourne.COM 1900 Pike Rd. UUCP: ...!{boulder,sun}!stan!reb Longmont, Colorado 80501 Phone : 303-678-4307