aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-06-03 05:51:29 +0200
committerMattias Andrée <maandree@operamail.com>2014-06-03 05:51:29 +0200
commitefeb8be52789d9cf5d44138dbf07d5b5c6822e2e (patch)
tree8c7bf7693cb9a4987ed0ac53f00a18ce08db070d /src/test
parentfix errors in gamma-x-randr (diff)
downloadlibgamma-efeb8be52789d9cf5d44138dbf07d5b5c6822e2e.tar.gz
libgamma-efeb8be52789d9cf5d44138dbf07d5b5c6822e2e.tar.bz2
libgamma-efeb8be52789d9cf5d44138dbf07d5b5c6822e2e.tar.xz
#warning is a GCC extension
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/test/test.c30
1 files changed, 16 insertions, 14 deletions
diff --git a/src/test/test.c b/src/test/test.c
index f5f5c42..4d20aa8 100644
--- a/src/test/test.c
+++ b/src/test/test.c
@@ -23,20 +23,22 @@
#include <string.h>
-#if LIBGAMMA_ERROR_MIN < -46
-# warning New error codes have been added to libgamma.
-#endif
-#if LIBGAMMA_METHOD_COUNT > 6
-# warning New adjust methods has been added to libgamma
-#endif
-#if LIBGAMMA_CONNECTOR_TYPE_COUNT > 19
-# warning New connector types have been added to libgamma.
-#endif
-#if LIBGAMMA_SUBPIXEL_ORDER_COUNT > 6
-# warning New subpixel orders have been added to libgamma.
-#endif
-#if LIBGAMMA_CRTC_INFO_COUNT > 13
-# warning New CRTC information fields have been added to libgamma.
+#ifdef __GNUC__
+# if LIBGAMMA_ERROR_MIN < -46
+# warning New error codes have been added to libgamma.
+# endif
+# if LIBGAMMA_METHOD_COUNT > 6
+# warning New adjust methods has been added to libgamma
+# endif
+# if LIBGAMMA_CONNECTOR_TYPE_COUNT > 19
+# warning New connector types have been added to libgamma.
+# endif
+# if LIBGAMMA_SUBPIXEL_ORDER_COUNT > 6
+# warning New subpixel orders have been added to libgamma.
+# endif
+# if LIBGAMMA_CRTC_INFO_COUNT > 13
+# warning New CRTC information fields have been added to libgamma.
+# endif
#endif