[hackers] [scc] Convert errors of chklvalue() into semantic || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Mon, 18 Jan 2016 17:51:56 +0100 (CET)

commit 2f1edab1b0ee2af6635bf41644eda6a25c4471c3
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Mon Jan 18 17:28:22 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Mon Jan 18 17:28:22 2016 +0100

    Convert errors of chklvalue() into semantic
    
    In this case we can continue without problems (I hope).

diff --git a/cc1/expr.c b/cc1/expr.c
index b20640c..5494505 100644
--- a/cc1/expr.c
+++ b/cc1/expr.c
_AT_@ -191,9 +191,9 @@ static void
 chklvalue(Node *np)
 {
         if (!np->lvalue)
- error("lvalue required in operation");
+ errorp("lvalue required in operation");
         if (np->type == voidtype)
- error("invalid use of void expression");
+ errorp("invalid use of void expression");
 }
 
 Node *
Received on Mon Jan 18 2016 - 17:51:56 CET

This archive was generated by hypermail 2.3.0 : Mon Jan 18 2016 - 18:00:52 CET