summaryrefslogtreecommitdiff
path: root/perf
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2011-09-02 12:51:10 +0200
committerAndrea Canciani <ranma42@gmail.com>2011-09-02 12:52:47 +0200
commit1bcc27985fe76a674ea5b8a24b1bad544390b301 (patch)
tree3f3cd29663afc5345fcbaa9797508a5ceff7c869 /perf
parentb1a1dfcdcfb865a4867541f91897f7dda556d206 (diff)
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.
Diffstat (limited to 'perf')
-rw-r--r--perf/micro/hash-table.c7
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;