aboutsummaryrefslogtreecommitdiffstats
path: root/src/gamma-randr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gamma-randr.c')
-rw-r--r--src/gamma-randr.c5
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;