From 0fa9f435f3dd69fd4bc326aa0b2e1f57f35d6311 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sun, 14 Sep 2008 17:50:19 +0000 Subject: [PATCH] Prevent stray error messages by pretending invalid references are address constants. [r21948] --- ast.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ast.c b/ast.c index 060aa6c..a9f8554 100644 --- a/ast.c +++ b/ast.c @@ -1634,6 +1634,9 @@ bool is_address_constant(const expression_t *expression) if(is_type_array(type)) { return is_object_with_linker_constant_address(expression); } + /* Prevent stray errors */ + if (!is_type_valid(type)) + return true; return false; } -- 2.20.1