summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/cmd/cc/com.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/src/cmd/cc/com.c b/sys/src/cmd/cc/com.c
index 9ac706acc..5072c8a21 100644
--- a/sys/src/cmd/cc/com.c
+++ b/sys/src/cmd/cc/com.c
@@ -608,9 +608,11 @@ tcomo(Node *n, int f)
goto bad;
n->type = l->type->link;
if(!debug['B']){
- if(l->type->down == T)
+ if(l->type->down == T){
+ if(!debug['T'])
+ nerrors--;
diag(n, "function not declared: %F", l);
- else if(l->type->down->etype == TOLD) {
+ }else if(l->type->down->etype == TOLD) {
nerrors--;
diag(n, "function args not checked: %F", l);
}