mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 01:48:07 +02:00
perf: Fix win32 build
Microsoft C Compiler complains about: hash-table.c(44) : error C2466: cannot allocate an array of constant size 0 Adding an unused element makes it happy.
This commit is contained in:
parent
b1a1dfcdcf
commit
1bcc27985f
1 changed files with 6 additions and 1 deletions
|
|
@ -41,7 +41,12 @@
|
|||
static cairo_time_t
|
||||
do_hash_table (cairo_t *cr, int width, int height, int loops)
|
||||
{
|
||||
cairo_scaled_font_t *active_fonts[ACTIVE_FONTS];
|
||||
/*
|
||||
* Microsoft C Compiler complains that:
|
||||
* error C2466: cannot allocate an array of constant size 0
|
||||
* so we add an unused element to make it happy
|
||||
*/
|
||||
cairo_scaled_font_t *active_fonts[ACTIVE_FONTS + 1];
|
||||
cairo_matrix_t m;
|
||||
int i;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue