[hackers] [scc] [cc1] Fix warnings || FRIGN

From: <git_AT_suckless.org>
Date: Tue, 17 May 2016 18:34:58 +0200 (CEST)

commit 21d9e39715eed916b7fb427d244c55d8f61bd2e5
Author: FRIGN <dev_AT_frign.de>
AuthorDate: Tue May 17 18:34:07 2016 +0200
Commit: FRIGN <dev_AT_frign.de>
CommitDate: Tue May 17 18:34:38 2016 +0200

    [cc1] Fix warnings
    
    One was a typo, the other an unclarity with type-signedness.

diff --git a/cc1/cc1.h b/cc1/cc1.h
index fcb65f7..6d13036 100644
--- a/cc1/cc1.h
+++ b/cc1/cc1.h
_AT_@ -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
index 80b9967..74a36c2 100644
--- a/cc1/decl.c
+++ b/cc1/decl.c
_AT_@ -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;
 
Received on Tue May 17 2016 - 18:34:58 CEST

This archive was generated by hypermail 2.3.0 : Tue May 17 2016 - 18:36:16 CEST