summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Woelders <kim@woelders.dk>2022-01-21 15:03:10 +0100
committerKim Woelders <kim@woelders.dk>2022-01-21 16:32:27 +0100
commit31982cbe638e9d035438af022824473170deb0b0 (patch)
tree4eadc504bc5dfa98e8f468221bf1b38b0cca86ec
parent838c391093d36b55a980e1171baa011da739c3d0 (diff)
downloadimlib2-31982cbe638e9d035438af022824473170deb0b0.tar.gz
imlib2_view: Avoid clang errorHEADmaster
imlib2_view.c:206:33: error: initializer element is not a compile-time constant static rect_t r_prev = r_zero; ^~~~~~
-rw-r--r--src/bin/imlib2_view.c2
1 files changed, 1 insertions, 1 deletions
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;