DxDiag Demo Patch

Henri Verbeet hverbeet at gmail.com
Fri Aug 7 01:22:31 CDT 2009


2009/8/7 Austin English <austinenglish at gmail.com>:
>>> +void D3DTest_initD3D();
>> This needs to be "void D3DTest_initD3D(void);" in C. The same goes for
>> a couple of other functions.
>
> I received mixed feedback on #winehackers about this. So currently
> left as is...is there a CFLAG/gcc switch to detect this, without using
> -ansi (which gives a crapton of other warnings).
>
You really want to add the "void". In the current form it's an K&R
style non-prototype function declaration. I.e., the number of
arguments to the function is undefined, rather than 0.



More information about the wine-devel mailing list