diff options
Diffstat (limited to 'src/lib/libgamma-facade.c.gpp')
-rw-r--r-- | src/lib/libgamma-facade.c.gpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/libgamma-facade.c.gpp b/src/lib/libgamma-facade.c.gpp index 038fad4..d380d97 100644 --- a/src/lib/libgamma-facade.c.gpp +++ b/src/lib/libgamma-facade.c.gpp @@ -60,8 +60,10 @@ lowercase () not have any adjustment methods enabled. */ #ifndef HAVE_LIBGAMMA_METHODS # define HAVE_NO_LIBGAMMA_METHODS -# pragma GCC diagnostic push -# pragma GCC diagnostic ignored "-Wsuggest-attribute=const" +# ifdef __GNUC__ +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wsuggest-attribute=const" +# endif #endif @@ -1050,6 +1052,8 @@ int libgamma_crtc_set_gamma_£{2}_f(libgamma_crtc_state_t* restrict this, #ifdef HAVE_NO_LIBGAMMA_METHODS -# pragma GCC diagnostic pop +# ifdef __GNUC__ +# pragma GCC diagnostic pop +# endif #endif |