[cfe-dev] spurious unused function warning on static constructor/destructor

Chris Lattner clattner at apple.com
Fri Apr 9 10:26:08 PDT 2010


On Apr 9, 2010, at 3:20 AM, Jean-Daniel Dupas wrote:

> I don't think clang should emit an "unused function" warning when the function is declared as a constructor or a destructor (using Constructor/Destructor Attr).
> 
> Here is a patch that prevent warning and (used add two cases in the warn-unused-function.c test).

Makes sense, patch looks great, applied as r100870, thanks!





More information about the cfe-dev mailing list