Hi Stefan,
2013/7/31 Stefan Dösinger stefandoesinger@gmail.com
Hi,
Am 31.07.2013 um 09:10 schrieb Christian Costa titan.costa@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