diff options
| author | grischka <grischka> | 2010-06-15 17:03:23 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2010-06-15 17:03:23 +0200 |
| commit | 632ee5a54076d417971ae7fa8a0c154441a71499 (patch) | |
| tree | 74182bd5322f5cfbb72e1a6a2718663e2120256e | |
| parent | 10b48028690d37ca505ed6e1c653325f752ab1f1 (diff) | |
| download | tinycc-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)();
...
}
| -rw-r--r-- | tccgen.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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; |
