diff options
-rw-r--r-- | perf/micro/hash-table.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/perf/micro/hash-table.c b/perf/micro/hash-table.c index dc8975d4..a0266381 100644 --- a/perf/micro/hash-table.c +++ b/perf/micro/hash-table.c @@ -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; |