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:
Andrea Canciani 2011-09-02 12:51:10 +02:00
parent b1a1dfcdcf
commit 1bcc27985f

View file

@ -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;