[hackers] [scc] Remove wrong test in initializer || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 14 Aug 2015 17:13:20 +0200 (CEST)

commit a2edadd2f36ac7cd89027252bdc63f459112ec1a
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Aug 14 17:11:50 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Aug 14 17:11:50 2015 +0200

    Remove wrong test in initializer

diff --git a/cc1/decl.c b/cc1/decl.c
index 2f12d4a..704ef4f 100644
--- a/cc1/decl.c
+++ b/cc1/decl.c
_AT_@ -349,9 +349,6 @@ invalid_type:
 static struct node *
 initializer(Symbol *sym)
 {
- if (!(sym->flags & ISEXTERN))
- error("'%s' initialized and declared extern", sym->name);
-
         if (accept('{')) {
                 initializer(sym);
                 expect('}');
Received on Fri Aug 14 2015 - 17:13:20 CEST

This archive was generated by hypermail 2.3.0 : Fri Aug 14 2015 - 17:24:11 CEST