From 0cfb376070a4bef7b4168a9795e025437e1be79f Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sun, 21 Oct 2012 11:25:08 -0400 Subject: fix clang warnings reported by Tuncer Ayaz R=rsc http://codereview.appspot.com/6744054 --- src/cmd/awk/run.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/cmd/awk') diff --git a/src/cmd/awk/run.c b/src/cmd/awk/run.c index da3e4378..b145758c 100644 --- a/src/cmd/awk/run.c +++ b/src/cmd/awk/run.c @@ -1541,7 +1541,7 @@ Cell *bltin(Node **a, int n) /* builtin functions. a[0] is type, a[1] is arg lis return x; default: /* can't happen */ FATAL("illegal function type %d", t); - break; + return(NULL); } tempfree(x); x = gettemp(); @@ -1584,8 +1584,6 @@ Cell *printstat(Node **a, int n) /* print a[0] */ Cell *nullproc(Node **a, int n) { - n = n; - a = a; return 0; } @@ -1683,7 +1681,6 @@ Cell *closefile(Node **a, int n) Cell *x; int i, stat; - n = n; x = execute(a[0]); getsval(x); for (i = 0; i < FOPEN_MAX; i++) -- cgit v1.2.3