[hackers] [scc] Simplify the error message in array() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 21 Aug 2015 13:10:37 +0200 (CEST)

X-DEBUG-UPD: 55eb22f73fd61f6a5393869d99d9098aee5b7337
commit 55eb22f73fd61f6a5393869d99d9098aee5b7337
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Tue Aug 18 18:28:27 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Tue Aug 18 18:28:27 2015 +0200

    Simplify the error message in array()

diff --git a/cc1/expr.c b/cc1/expr.c
index a0bbeb9..34838ff 100644
--- a/cc1/expr.c
+++ b/cc1/expr.c
_AT_@ -613,7 +613,7 @@ array(Node *lp, Node *rp)
         lp = arithmetic(OADD, lp, rp);
         tp = lp->type;
         if (tp->op != PTR)
- error("subscripted value is neither array nor pointer nor vector");
+ error("subscripted value is neither array nor pointer");
         lp = node(OPTR, tp->type, lp, NULL);
         lp->lvalue = 1;
         return lp;
Received on Fri Aug 21 2015 - 13:10:37 CEST

This archive was generated by hypermail 2.3.0 : Fri Aug 21 2015 - 13:12:21 CEST