From d845e96d160a05958f2e5f87cb968dbca7e96158 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 23 May 2014 18:08:53 +0200 Subject: disable aggregate-return warnings in gamma-x-randr (xcb violates this) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/gamma-x-randr.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gamma-x-randr.c b/src/gamma-x-randr.c index 5eca1c8..6639e8f 100644 --- a/src/gamma-x-randr.c +++ b/src/gamma-x-randr.c @@ -105,6 +105,10 @@ void libgamma_x_randr_method_capabilities(libgamma_method_capabilities_t* restri } +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Waggregate-return" + + /** * Initialise an allocated site state * @@ -319,3 +323,6 @@ int libgamma_x_randr_crtc_set_gamma_ramps(libgamma_crtc_state_t* restrict this, return 0; } + +# pragma GCC diagnostic pop + -- cgit v1.2.3-70-g09d2