Skip to content

Commit

Permalink
Remove unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed Aug 22, 2018
1 parent cb98af0 commit 9d130e7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,3 +2,4 @@
*.o
tmp*
9cc
a.out
4 changes: 0 additions & 4 deletions 9cc.h
Expand Up @@ -153,7 +153,6 @@ typedef struct {

typedef struct {
char *name;
int args[6];
int stacksize;
Vector *ir;
} Function;
Expand All @@ -171,6 +170,3 @@ void alloc_regs(Vector *irv);

/// codegen.c
void gen_x86(Vector *fns);

/// main.c
char **argv;
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -12,4 +12,4 @@ test: 9cc
./test.sh

clean:
rm -f 9cc *.o *~ tmp*
rm -f 9cc *.o *~ tmp* a.out

0 comments on commit 9d130e7

Please sign in to comment.