projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d97ed2
)
Prevent stray error messages by pretending invalid references are address constants.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Sun, 14 Sep 2008 17:50:19 +0000
(17:50 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Sun, 14 Sep 2008 17:50:19 +0000
(17:50 +0000)
[r21948]
ast.c
patch
|
blob
|
history
diff --git
a/ast.c
b/ast.c
index
060aa6c
..
a9f8554
100644
(file)
--- 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;
}