[Webkit-unassigned] [Bug 93931] [EFL] Remove alloca usage.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 16 00:13:47 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=93931





--- Comment #16 from Grzegorz Czajkowski <g.czajkowski at samsung.com>  2012-08-16 00:14:19 PST ---
(In reply to comment #14)
> OK, I've managed to reproduce that warning with my code snippet by calling edje_object_message_send() in it (clang still doesn't produce any warning).
> 
> There are two possible solutions here:
> 
> 1) Use plain old malloc() here specifying the amount of bytes we want to allocate and avoiding all those casts.
> 
How about using new placement instead? Does it produce warning too? I couldn't verify it as I am facing problem to access svn.enlightenment.org and git.webkit.org :/ sorry

char* buffer = new char[sizeof(Edje_Message_Float_Set) + sizeof(double)])
Edje_Message_Float_Set* message = new(buffer) Edje_Message_Float_Set;

This plus smart pointer may be another solution for us.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list