summaryrefslogtreecommitdiff
path: root/src/cairo-xcb-private.h
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2011-08-30 22:19:33 +0200
committerUli Schlachter <psychon@znc.in>2011-08-30 22:19:33 +0200
commitd66d9cd777c362e2f99a41aa77bbe3428cf0c60d (patch)
treefb4aee67f8f6dec3b8fb9418d9ff07fbc9646bee /src/cairo-xcb-private.h
parent5f45f696d0a82dd9f9d4534d135fe75ce11b5223 (diff)
downloadcairo-d66d9cd777c362e2f99a41aa77bbe3428cf0c60d.tar.gz
xcb: Fix fallback for *_shm_put_image
This function shouldn't ever be called is xcb-shm is disabled. However, it is still defined to avoid lots of #ifdefs. Additionally, this removes the only use of uint64_t from cairo-xcb. Signed-off-by: Uli Schlachter <psychon@znc.in>
Diffstat (limited to 'src/cairo-xcb-private.h')
-rw-r--r--src/cairo-xcb-private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-xcb-private.h b/src/cairo-xcb-private.h
index 648bd5705..c99f1177b 100644
--- a/src/cairo-xcb-private.h
+++ b/src/cairo-xcb-private.h
@@ -612,7 +612,7 @@ cairo_private void
_cairo_xcb_connection_shm_detach (cairo_xcb_connection_t *connection,
uint32_t segment);
#else
-static inline uint64_t
+static inline void
_cairo_xcb_connection_shm_put_image (cairo_xcb_connection_t *connection,
xcb_drawable_t dst,
xcb_gcontext_t gc,
@@ -628,7 +628,7 @@ _cairo_xcb_connection_shm_put_image (cairo_xcb_connection_t *connection,
uint32_t shm,
uint32_t offset)
{
- return 0;
+ ASSERT_NOT_REACHED;
}
#endif