Revert "Complain for static fct declared w/o file scope"
This reverts commit e9406c09a3
.
We don't want errors for static local function pointers, such as:
{
static void (*fn)();
...
}
This commit is contained in:
parent
10b4802869
commit
632ee5a540
1 changed files with 0 additions and 3 deletions
3
tccgen.c
3
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;
|
||||
|
|
Loading…
Reference in a new issue