[bugs] [illumos gate - Bug #1200] various modules declare static functions within function bodies
illumos bugs
bugs at lists.illumos.org
Mon Jul 11 23:18:59 PDT 2011
Issue #1200 has been updated by Rich Lowe.
Putting prototypes in function bodies is certainly tasteless, but declaring them _static_ is bogus: if the compiler supports nested functions an extension 'static' and it being declared within a function will specify conflicting scope; and possibly bogus in general -- I'm not certain what the standards say about the scope of a prototype declared, regardless of the nested-functions extension.
----------------------------------------
Bug #1200: various modules declare static functions within function bodies
https://www.illumos.org/issues/1200
Author: Rich Lowe
Status: In Progress
Priority: Normal
Assignee: Rich Lowe
Category: kernel
Target version:
Difficulty: Medium
Tags:
It is, apparently, non-sensical to place a static function prototype within the body of a function, though Studio and GCC have supported it.
They should be pulled up to file scope.
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://www.illumos.org/my/account
More information about the bugs
mailing list