From c93d8830fffb8674d15132e1041cf1d21bf2b2d9 Mon Sep 17 00:00:00 2001 From: Richard Grenville Date: Fri, 26 Apr 2013 16:14:37 +0800 Subject: [PATCH] Misc: Fix gcc error Fix gcc compilation error about "initializer element is not constant". --- src/compton.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/compton.c b/src/compton.c index 05e115c..7935e4c 100644 --- a/src/compton.c +++ b/src/compton.c @@ -5155,15 +5155,13 @@ get_cfg(session_t *ps, int argc, char *const *argv, bool first_pass) { // Fill default blur kernel if (ps->o.blur_background && !ps->o.blur_kern) { - const static int convolution_blur_size = 3; // Convolution filter parameter (box blur) // gaussian or binomial filters are definitely superior, yet looks // like they aren't supported as of xorg-server-1.13.0 const static XFixed convolution_blur[] = { // Must convert to XFixed with XDoubleToFixed() // Matrix size - XDoubleToFixed(convolution_blur_size), - XDoubleToFixed(convolution_blur_size), + XDoubleToFixed(3), XDoubleToFixed(3), // Matrix XDoubleToFixed(1), XDoubleToFixed(1), XDoubleToFixed(1), XDoubleToFixed(1), XDoubleToFixed(1), XDoubleToFixed(1),