aboutsummaryrefslogtreecommitdiff
path: root/tccgen.c
diff options
context:
space:
mode:
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;