scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 21d9e39715eed916b7fb427d244c55d8f61bd2e5
parent 9b285f0edfd753ced6fe442afccd3b319be87aea
Author: FRIGN <dev@frign.de>
Date:   Tue, 17 May 2016 18:34:07 +0200

[cc1] Fix warnings

One was a typo, the other an unclarity with type-signedness.

Diffstat:
Mcc1/cc1.h | 2+-
Mcc1/decl.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cc1/cc1.h b/cc1/cc1.h @@ -396,7 +396,7 @@ extern Node *castcode(Node *np, Type *newtp); extern TUINT ones(int nbytes); /* expr.c */ -extern Node *decay(Node *), *negate(Node *np), *assign(void);; +extern Node *decay(Node *), *negate(Node *np), *assign(void); extern Node *convert(Node *np, Type *tp1, char iscast); extern Node *iconstexpr(void), *condexpr(void), *expr(void); extern bool isnodecmp(int op); diff --git a/cc1/decl.c b/cc1/decl.c @@ -366,7 +366,7 @@ static Type * specifier(int *sclass, int *qualifier) { Type *tp = NULL; - int spec, qlf, sign, type, cls, size; + unsigned spec, qlf, sign, type, cls, size; spec = qlf = sign = type = cls = size = 0;