aboutsummaryrefslogtreecommitdiff
path: root/tccgen.c
diff options
context:
space:
mode:
authorgrischka <grischka>2010-06-15 17:03:23 +0200
committergrischka <grischka>2010-06-15 17:03:23 +0200
commit632ee5a54076d417971ae7fa8a0c154441a71499 (patch)
tree74182bd5322f5cfbb72e1a6a2718663e2120256e /tccgen.c
parent10b48028690d37ca505ed6e1c653325f752ab1f1 (diff)
downloadtinycc-632ee5a54076d417971ae7fa8a0c154441a71499.tar.gz
tinycc-632ee5a54076d417971ae7fa8a0c154441a71499.tar.bz2
Revert "Complain for static fct declared w/o file scope"
This reverts commit e9406c09a3212ab3f120412a6bbdacb0cdd25deb. We don't want errors for static local function pointers, such as: { static void (*fn)(); ... }
Diffstat (limited to 'tccgen.c')
-rw-r--r--tccgen.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tccgen.c b/tccgen.c
index 5c5f26e..9d57ecd 100644
--- a/tccgen.c
+++ b/tccgen.c
@@ -2995,9 +2995,6 @@ static void post_type(CType *type, AttributeDef *ad)
if (tok == '(') {
/* function declaration */
- if ((type->t & VT_STATIC) && local_stack) {
- error("Function without file scope cannot be static");
- }
next();
l = 0;
first = NULL;