From 31982cbe638e9d035438af022824473170deb0b0 Mon Sep 17 00:00:00 2001 From: Kim Woelders Date: Fri, 21 Jan 2022 15:03:10 +0100 Subject: imlib2_view: Avoid clang error imlib2_view.c:206:33: error: initializer element is not a compile-time constant static rect_t r_prev = r_zero; ^~~~~~ --- src/bin/imlib2_view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/imlib2_view.c b/src/bin/imlib2_view.c index 84fb6f9..9e22fef 100644 --- a/src/bin/imlib2_view.c +++ b/src/bin/imlib2_view.c @@ -203,7 +203,7 @@ static void anim_update(Imlib_Image im, const rect_t * up_in, rect_t * up_out, int flags) { static const rect_t r_zero = { }; - static rect_t r_prev = r_zero; + static rect_t r_prev = { }; static Imlib_Image im_prev = NULL; Imlib_Image im_save = NULL; -- cgit v1.2.1