aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acidtypes
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2012-10-20 13:36:52 -0400
committerRuss Cox <rsc@swtch.com>2012-10-20 13:36:52 -0400
commit220c15d2b746878a943f311e6f66b1480e46491d (patch)
treeb3235ff00e75b08680c0db754058ec908e2b2f22 /src/cmd/acidtypes
parent53527a6e7864f5d681d7140f1403d4d8d42311d5 (diff)
downloadplan9port-220c15d2b746878a943f311e6f66b1480e46491d.tar.gz
plan9port-220c15d2b746878a943f311e6f66b1480e46491d.tar.bz2
plan9port-220c15d2b746878a943f311e6f66b1480e46491d.zip
fix gcc 4.7 warnings (thanks Tuncer Ayaz)
R=rsc http://codereview.appspot.com/6744053
Diffstat (limited to 'src/cmd/acidtypes')
-rw-r--r--src/cmd/acidtypes/stabs.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cmd/acidtypes/stabs.c b/src/cmd/acidtypes/stabs.c
index 862f9434..f86c99e3 100644
--- a/src/cmd/acidtypes/stabs.c
+++ b/src/cmd/acidtypes/stabs.c
@@ -603,14 +603,13 @@ int
stabs2acid(Stab *stabs, Biobuf *b)
{
volatile int fno, i;
- char c, *file, *desc, *p;
+ char c, *desc, *p;
char *volatile dir, *volatile fn, *volatile name;
Ftypes *f;
Type *t, *tt;
StabSym sym;
dir = nil;
- file = nil;
fno = 0;
fn = nil;
for(i=0; stabsym(stabs, i, &sym)>=0; i++){
@@ -621,8 +620,6 @@ stabs2acid(Stab *stabs, Biobuf *b)
if(sym.name){
if(sym.name[0] && sym.name[strlen(sym.name)-1] == '/')
dir = sym.name;
- else
- file = sym.name;
}
denumber();
fstack = nil;