From d4aa82fb9148862904bb7ca33655ce8d571643b0 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Tue, 3 Jul 2012 05:55:14 -0400 Subject: [PATCH] Qualify the static variables in pixman_f_transform_invert() with the const keyword. Their contents is not overwritten. --- pixman/pixman-matrix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pixman/pixman-matrix.c b/pixman/pixman-matrix.c index 8d0d973..6d215ff 100644 --- a/pixman/pixman-matrix.c +++ b/pixman/pixman-matrix.c @@ -471,8 +471,8 @@ pixman_f_transform_invert (struct pixman_f_transform * dst, { double det; int i, j; - static int a[3] = { 2, 2, 1 }; - static int b[3] = { 1, 0, 0 }; + static const int a[3] = { 2, 2, 1 }; + static const int b[3] = { 1, 0, 0 }; det = 0; for (i = 0; i < 3; i++) -- 2.7.4