Fixed warning C4204: nonstandard extension used: non-constant aggregate initializer when built with Visual Studio 2019

This commit is contained in:
Sam Lantinga committed 2024-02-07 13:16:35 -08:00
1 parent 1269590dfc
commit faeb2b1f22
6 files changed
+35 -30

No files matched your search

@@ -187,11 +187,10 @@ int hid_winapi_descriptor_reconstruct_pp_data(void *preparsed_data, unsigned cha
return -1;
}
struct rd_buffer rpt_desc = {
.buf = buf,
.buf_size = buf_size,
.byte_idx = 0
};
struct rd_buffer rpt_desc;
rpt_desc.buf = buf;
rpt_desc.buf_size = buf_size;
rpt_desc.byte_idx = 0;
// Set pointer to the first node of link_collection_nodes
phid_pp_link_collection_node link_collection_nodes = (phid_pp_link_collection_node)(((unsigned char*)&pp_data->caps[0]) + pp_data->FirstByteOfLinkCollectionArray);