From 9f53d7ed25e6f221ddaf8bb97565c62cc7978ac0 Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Sun, 30 Mar 2025 04:12:55 +0200 Subject: [PATCH] src/magnifier: fix compile on ancient GCC versions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes ``` ../src/magnifier.c:153:3: error: missing initializer for field ‘clip’ of ‘struct wlr_render_rect_options’ [-Werror=missing-field-initializers] 153 | }; | ^ In file included from ../subprojects/wlroots/include/wlr/render/wlr_renderer.h:14, from ../subprojects/wlroots/include/wlr/types/wlr_output.h:17, from ../src/magnifier.c:5: ../subprojects/wlroots/include/wlr/render/pass.h:115:27: note: ‘clip’ declared here 115 | const pixman_region32_t *clip ``` --- src/magnifier.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/magnifier.c b/src/magnifier.c index b026d671..80abc205 100644 --- a/src/magnifier.c +++ b/src/magnifier.c @@ -150,6 +150,7 @@ magnifier_draw(struct output *output, struct wlr_buffer *output_buffer, struct w .b = theme->mag_border_color[2], .a = theme->mag_border_color[3] }, + .clip = NULL, }; wlr_render_pass_add_rect(tmp_render_pass, &bg_opts); wlr_box_intersection(&damage_box, &border_box, &output_box);