Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!mcvax!ukc!warwick!csuvt From: csuvt@warwick.ac.uk (Anton Carver (Wands)) Newsgroups: comp.lang.c++ Subject: getting rid of---"prog.c": line nnn: warning: var not used Keywords: pedantic, warnings. Message-ID: <115@orchid.warwick.ac.uk> Date: 1 Jun 89 20:52:19 GMT Reply-To: csuvt@warwick.ac.uk (Anton Carver (Wands)) Distribution: comp Organization: Computing Services, Warwick University, UK Lines: 18 Have you ever written a program like this: main ( int argc, char *argv[] ) { /* do something with argv, but not argc */ } and the warning: "prog.c": line 4: warning: argc not used The solution: main ( int, char *argv[] ) { /* do something with argv, but not argc */ } Obvious really, but not to many C programmers.