summaryrefslogtreecommitdiff
path: root/src/bin/embryo
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-22 18:28:05 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-22 20:14:58 +0900
commit9415a1d3107c396e8e26aef7e3769dc502880d90 (patch)
tree71bea121c425d6672b0803e5ad7eced76d511112 /src/bin/embryo
parent14008d3111168343fe22d99dfd0aa7c9020968f3 (diff)
embryo_cc - fix usless array check
fix CID 1039346
Diffstat (limited to 'src/bin/embryo')
-rw-r--r--src/bin/embryo/embryo_cc_sc1.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bin/embryo/embryo_cc_sc1.c b/src/bin/embryo/embryo_cc_sc1.c
index 1c7ba49fad..6432b5599d 100644
--- a/src/bin/embryo/embryo_cc_sc1.c
+++ b/src/bin/embryo/embryo_cc_sc1.c
@@ -3443,8 +3443,7 @@ test(int label, int parens, int inv)
3443 needtoken(')'); 3443 needtoken(')');
3444 if (lval.ident == iARRAY || lval.ident == iREFARRAY) 3444 if (lval.ident == iARRAY || lval.ident == iREFARRAY)
3445 { 3445 {
3446 char *ptr = 3446 char *ptr = lval.sym->name;
3447 (lval.sym->name) ? lval.sym->name : "-unknown-";
3448 error(33, ptr); /* array must be indexed */ 3447 error(33, ptr); /* array must be indexed */
3449 } /* if */ 3448 } /* if */
3450 if (lval.ident == iCONSTEXPR) 3449 if (lval.ident == iCONSTEXPR)