diff options
author | Mattias Andrée <m@maandree.se> | 2025-03-05 20:59:57 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-03-05 20:59:57 +0100 |
commit | 259604f63dba5f958b879813d1eaed9a59991d1e (patch) | |
tree | 15aec3fced6f925fb3dd9d6c5907cf5aaa2a22d0 /src/gamma-randr.c | |
parent | Mention after fork that SIGCHLD is ignored (diff) | |
download | redshift-ng-259604f63dba5f958b879813d1eaed9a59991d1e.tar.gz redshift-ng-259604f63dba5f958b879813d1eaed9a59991d1e.tar.bz2 redshift-ng-259604f63dba5f958b879813d1eaed9a59991d1e.tar.xz |
Fix warnings
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'src/gamma-randr.c')
-rw-r--r-- | src/gamma-randr.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 <xcb/xcb.h> #include <xcb/randr.h> +#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; |