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:
grischka 2010-06-15 17:03:23 +02:00
parent 10b4802869
commit 632ee5a540

View File

@ -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;