[Bug 4123] the nested function in c code renders busybox not compilable under clang

bugzilla at busybox.net bugzilla at busybox.net
Thu Jan 17 10:19:12 UTC 2013


https://bugs.busybox.net/show_bug.cgi?id=4123

--- Comment #6 from Denys Vlasenko <vda.linux at googlemail.com> 2013-01-17 10:19:34 UTC ---
(In reply to comment #3)
> Created attachment 4568 [details]
> Prototype fix for the problem
> 
> Is it worthwhile cleaning up this patch and committing it?

Sorry, but no. It looks bad.

BTW. What is giving you the warning? The declaration
(the "auto action* alloc_action(int sizeof_struct, action_fp f);" line)
or the definition?

Declaration line can be deleted. Then gcc will throw "func without a prototype"
warning, but otherwise will compile it just fine.

And finally.
Maybe you can file a feature request with clang "please support this GCC-ism"?

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list