[PATCH] d3dx9_36: Filter out D3DCompile warning messages that are not present with D3DCompileShader.

Christian Costa titan.costa at gmail.com
Wed Jul 31 09:01:23 CDT 2013


Hi Stefan,

2013/7/31 Stefan Dösinger <stefandoesinger at gmail.com>

> Hi,
>
> Am 31.07.2013 um 09:10 schrieb Christian Costa <titan.costa at gmail.com>:
>
> +                if (!(strstr(line_out, "warning X3206:") &&
> strstr(line_out, "implicit truncation of vector type")))
> +                    line_out += line_size;
>
> msvc localizes compiler errors and warnings. Are you sure d3dcompiler.dll
> doesn't do that?
>

AFAIK no. My localization is french and I get english messages. Any idea
how I can check that?


>
> Wrt the parsing code, wouldn't it be nicer to use strtok_r to split the
> buffer into separate lines?
>

 The parsing code handles missing null byte as well as both unix/dos text
formats but maybe I can just simplify it by using strtok_r and assume dos
format with null byte.


> I am not sure that parsing the errors and warnings like that is a good
> thing, but I don't know d3dx9 and d3dcompiler well enough to give a final
> judgement on that.
>
>
I'm afraid this is the only solution. AFAIK there is no option that disable
this warning.

Cheers
Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20130731/92d30c17/attachment.html>


More information about the wine-devel mailing list