mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
gallium: Make pipe_query_result::batch array length non-zero.
Zero length arrays are non standard: warning C4200: nonstandard extension used : zero-sized array in struct/union Cannot generate copy-ctor or copy-assignment operator when UDT contains a zero-sized array And all code does `N * sizeof query_result->batch[0]`, so it should work exactly the same. Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
bc2470d5d3
commit
c127e6a3ea
1 changed files with 2 additions and 2 deletions
|
|
@ -822,8 +822,8 @@ union pipe_query_result
|
|||
/* PIPE_QUERY_PIPELINE_STATISTICS */
|
||||
struct pipe_query_data_pipeline_statistics pipeline_statistics;
|
||||
|
||||
/* batch queries */
|
||||
union pipe_numeric_type_union batch[0];
|
||||
/* batch queries (variable length) */
|
||||
union pipe_numeric_type_union batch[1];
|
||||
};
|
||||
|
||||
union pipe_color_union
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue