re: dxdiag: Add code for XML information output
Andrew Nguyan's commit, http://www.winehq.org/pipermail/wine-cvs/2011-June/078592.html used the construct static BOOL output_xml_information(struct dxdiag_information *dxdiag_info, const WCHAR *filename) { const struct information_block { const WCHAR *tag_name; struct information_field { const WCHAR *tag_name; const WCHAR *value; } fields[50]; } output_table[] = { {SystemInformation, { {Time, dxdiag_info->system_info.szTimeEnglish}, ... Isn't Wine was supposed to avoid non-static struct initializers? I think it'll get "warning: initializer element is not computable at load time" with --std=c89 --pedantic.
On 06/14/2011 12:18 PM, Dan Kegel wrote:
Isn't Wine was supposed to avoid non-static struct initializers?
I think it'll get "warning: initializer element is not computable at load time" with --std=c89 --pedantic.
I believe you're right, and I've sent a patch that avoids the construct.
participants (2)
-
Andrew Nguyen -
Dan Kegel