Use the __unused attribute where warranted.
This commit is contained in:
parent
db112f04dc
commit
e7a0b0244d
@ -33,7 +33,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: alias.c,v 1.7 1997/02/22 13:58:20 peter Exp $
|
||||
* $Id: alias.c,v 1.8 1997/04/28 03:06:32 steve Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -232,8 +232,8 @@ aliascmd(argc, argv)
|
||||
|
||||
int
|
||||
unaliascmd(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
int argc __unused;
|
||||
char **argv __unused;
|
||||
{
|
||||
int i;
|
||||
|
||||
|
10
bin/sh/cd.c
10
bin/sh/cd.c
@ -33,7 +33,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: cd.c,v 1.14 1997/02/22 13:58:22 peter Exp $
|
||||
* $Id: cd.c,v 1.15 1997/04/28 03:06:32 steve Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -75,8 +75,8 @@ STATIC char *cdcomppath;
|
||||
|
||||
int
|
||||
cdcmd(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
int argc __unused;
|
||||
char **argv __unused;
|
||||
{
|
||||
char *dest;
|
||||
char *path;
|
||||
@ -213,8 +213,8 @@ updatepwd(dir)
|
||||
|
||||
int
|
||||
pwdcmd(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
int argc __unused;
|
||||
char **argv __unused;
|
||||
{
|
||||
if (!getpwd())
|
||||
error("getcwd() failed: %s", strerror(errno));
|
||||
|
@ -33,7 +33,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: eval.c,v 1.11 1997/02/22 13:58:23 peter Exp $
|
||||
* $Id: eval.c,v 1.12 1997/04/28 03:06:33 steve Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -903,8 +903,8 @@ prehash(n)
|
||||
|
||||
int
|
||||
bltincmd(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
int argc __unused;
|
||||
char **argv __unused;
|
||||
{
|
||||
listsetvar(cmdenviron);
|
||||
/*
|
||||
@ -968,8 +968,8 @@ returncmd(argc, argv)
|
||||
|
||||
int
|
||||
falsecmd(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
int argc __unused;
|
||||
char **argv __unused;
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
@ -977,8 +977,8 @@ falsecmd(argc, argv)
|
||||
|
||||
int
|
||||
truecmd(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
int argc __unused;
|
||||
char **argv __unused;
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -33,7 +33,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: exec.c,v 1.9 1997/02/22 13:58:25 peter Exp $
|
||||
* $Id: exec.c,v 1.10 1997/04/28 03:08:37 steve Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -325,8 +325,8 @@ padvance(path, name)
|
||||
|
||||
int
|
||||
hashcmd(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
int argc __unused;
|
||||
char **argv __unused;
|
||||
{
|
||||
struct tblentry **pp;
|
||||
struct tblentry *cmdp;
|
||||
|
@ -33,7 +33,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: expand.c,v 1.16 1997/02/22 13:58:26 peter Exp $
|
||||
* $Id: expand.c,v 1.17 1997/04/28 03:28:43 steve Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -956,7 +956,7 @@ char *expdir;
|
||||
STATIC void
|
||||
expandmeta(str, flag)
|
||||
struct strlist *str;
|
||||
int flag;
|
||||
int flag __unused;
|
||||
{
|
||||
char *p;
|
||||
struct strlist **savelastp;
|
||||
|
@ -33,7 +33,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: jobs.c,v 1.12 1997/02/22 13:58:29 peter Exp $
|
||||
* $Id: jobs.c,v 1.13 1997/04/28 03:06:34 steve Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -190,7 +190,7 @@ SHELLPROC {
|
||||
#if JOBS
|
||||
int
|
||||
fgcmd(argc, argv)
|
||||
int argc;
|
||||
int argc __unused;
|
||||
char **argv;
|
||||
{
|
||||
struct job *jp;
|
||||
@ -255,8 +255,8 @@ restartjob(jp)
|
||||
|
||||
int
|
||||
jobscmd(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
int argc __unused;
|
||||
char **argv __unused;
|
||||
{
|
||||
showjobs(0);
|
||||
return 0;
|
||||
@ -415,7 +415,7 @@ waitcmd(argc, argv)
|
||||
|
||||
int
|
||||
jobidcmd(argc, argv)
|
||||
int argc;
|
||||
int argc __unused;
|
||||
char **argv;
|
||||
{
|
||||
struct job *jp;
|
||||
@ -497,7 +497,7 @@ getjob(name)
|
||||
|
||||
struct job *
|
||||
makejob(node, nprocs)
|
||||
union node *node;
|
||||
union node *node __unused;
|
||||
int nprocs;
|
||||
{
|
||||
int i;
|
||||
|
@ -33,7 +33,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: miscbltin.c,v 1.11 1997/02/22 13:58:35 peter Exp $
|
||||
* $Id: miscbltin.c,v 1.12 1997/04/28 03:06:36 steve Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -75,8 +75,8 @@ extern char **argptr; /* argument list for builtin command */
|
||||
|
||||
int
|
||||
readcmd(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
int argc __unused;
|
||||
char **argv __unused;
|
||||
{
|
||||
char **ap;
|
||||
int backslash;
|
||||
@ -159,7 +159,7 @@ readcmd(argc, argv)
|
||||
|
||||
int
|
||||
umaskcmd(argc, argv)
|
||||
int argc;
|
||||
int argc __unused;
|
||||
char **argv;
|
||||
{
|
||||
char *ap;
|
||||
@ -289,8 +289,8 @@ static const struct limits limits[] = {
|
||||
|
||||
int
|
||||
ulimitcmd(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
int argc __unused;
|
||||
char **argv __unused;
|
||||
{
|
||||
int c;
|
||||
quad_t val = 0;
|
||||
|
@ -33,7 +33,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: mkinit.c,v 1.9 1997/02/22 13:58:36 peter Exp $
|
||||
* $Id: mkinit.c,v 1.10 1997/04/28 03:06:37 steve Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -168,7 +168,7 @@ void error __P((char *));
|
||||
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
int argc __unused;
|
||||
char **argv;
|
||||
{
|
||||
char **ap;
|
||||
|
@ -33,7 +33,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: mksyntax.c,v 1.9 1997/02/22 13:58:37 peter Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -117,8 +117,8 @@ static void digit_convert __P((void));
|
||||
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
int argc __unused;
|
||||
char **argv __unused;
|
||||
{
|
||||
char c;
|
||||
char d;
|
||||
|
@ -33,7 +33,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: parser.c,v 1.19 1997/02/22 13:58:42 peter Exp $
|
||||
* $Id: parser.c,v 1.20 1997/04/28 03:22:09 steve Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -1515,8 +1515,8 @@ setprompt(which)
|
||||
*/
|
||||
char *
|
||||
getprompt(unused)
|
||||
void *unused;
|
||||
{
|
||||
void *unused __unused;
|
||||
{
|
||||
switch (whichprompt) {
|
||||
case 0:
|
||||
return "";
|
||||
|
14
bin/sh/var.c
14
bin/sh/var.c
@ -33,7 +33,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: var.c,v 1.9 1997/02/22 13:58:47 peter Exp $
|
||||
* $Id: var.c,v 1.10 1997/04/28 03:06:39 steve Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -500,8 +500,8 @@ shprocvar() {
|
||||
|
||||
int
|
||||
showvarscmd(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
int argc __unused;
|
||||
char **argv __unused;
|
||||
{
|
||||
struct var **vpp;
|
||||
struct var *vp;
|
||||
@ -574,8 +574,8 @@ found:;
|
||||
|
||||
int
|
||||
localcmd(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
int argc __unused;
|
||||
char **argv __unused;
|
||||
{
|
||||
char *name;
|
||||
|
||||
@ -686,8 +686,8 @@ setvarcmd(argc, argv)
|
||||
|
||||
int
|
||||
unsetcmd(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
int argc __unused;
|
||||
char **argv __unused;
|
||||
{
|
||||
char **ap;
|
||||
int i;
|
||||
|
Loading…
Reference in New Issue
Block a user