From: Christoph Mallon Date: Sun, 14 Sep 2008 17:50:19 +0000 (+0000) Subject: Prevent stray error messages by pretending invalid references are address constants. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=0fa9f435f3dd69fd4bc326aa0b2e1f57f35d6311;p=cparser Prevent stray error messages by pretending invalid references are address constants. [r21948] --- 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; }