From 259604f63dba5f958b879813d1eaed9a59991d1e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 5 Mar 2025 20:59:57 +0100 Subject: Fix warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/gamma-randr.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gamma-randr.c') diff --git a/src/gamma-randr.c b/src/gamma-randr.c index 9bbb807..6c00625 100644 --- a/src/gamma-randr.c +++ b/src/gamma-randr.c @@ -21,6 +21,9 @@ #include #include +#if defined(__GNUC__) +# pragma GCC diagnostic ignored "-Waggregate-return" +#endif #define RANDR_VERSION_MAJOR 1 @@ -109,6 +112,8 @@ randr_start(struct gamma_state *state, enum program_mode mode) xcb_randr_get_screen_resources_current_reply_t *res_reply; xcb_randr_crtc_t *crtcs; + (void) mode; + screen_num = state->screen_num; if (screen_num < 0) screen_num = state->preferred_screen; -- cgit v1.2.3-70-g09d2