summaryrefslogtreecommitdiff
path: root/boilerplate/cairo-boilerplate.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-01-03 11:44:58 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2009-01-03 21:53:09 +0000
commitff1f5de5511ba0b7842b53223c26986e4bcdc38a (patch)
tree249467a7bec44bc928720451aced16642f9244ac /boilerplate/cairo-boilerplate.h
parent75538962c8af11b1ec669caca6259b7769b5cc1d (diff)
downloadcairo-ff1f5de5511ba0b7842b53223c26986e4bcdc38a.tar.gz
[boilerplate] Suppress xlib warnings on stderr
If we cannot test the xlib backend simply because there is no Display, just report UNTESTED and do not clutter the output with superfluous warnings [see the output from the buildbots for an example]. However, keep the warnings around so that a developer can re-enable them and so simply move them to a new "lower priority" macro.
Diffstat (limited to 'boilerplate/cairo-boilerplate.h')
-rw-r--r--boilerplate/cairo-boilerplate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/boilerplate/cairo-boilerplate.h b/boilerplate/cairo-boilerplate.h
index 19b29572e..b2d79a7f0 100644
--- a/boilerplate/cairo-boilerplate.h
+++ b/boilerplate/cairo-boilerplate.h
@@ -74,6 +74,10 @@
#define CAIRO_BOILERPLATE_LOG(...) fprintf(stderr, __VA_ARGS__)
#endif
+#ifndef CAIRO_BOILERPLATE_DEBUG
+#define CAIRO_BOILERPLATE_DEBUG(...)
+#endif
+
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
#define CAIRO_BOILERPLATE_PRINTF_FORMAT(fmt_index, va_index) \
__attribute__((__format__(__printf__, fmt_index, va_index)))