__ms_va_list and NULL

Piotr Caban piotr at codeweavers.com
Tue May 10 14:18:01 CDT 2011


On 05/10/11 20:02, André Hentschel wrote:
> Hi Piotr and folks,
> Most ARM crosscompilers (can't test with a native ARM one right now) don't like using NULL for a va_list and i'm not the only one seeing this issue.
> Piotr, i think that's your code, so maybe you can tell if it needs to be tuned or if that is a bug in the compiler (as the normal x86(_64) gcc works here).
> I hacked around that issue and attached the patch for documentation purpose, at least it compiles fine, don't know if it runs.
I don't know if it's a compiler fault or the code is faulty.

Adding empty __ms_va_lists looks suspicious. In this case there's always 
proper valist and you can pass (no need to create new). It will be 
ignored in the same way NULL is.



More information about the wine-devel mailing list