summaryrefslogtreecommitdiff
path: root/x11/xcb-util-image/patches/patch-image_xcb__image.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11/xcb-util-image/patches/patch-image_xcb__image.c')
-rw-r--r--x11/xcb-util-image/patches/patch-image_xcb__image.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/x11/xcb-util-image/patches/patch-image_xcb__image.c b/x11/xcb-util-image/patches/patch-image_xcb__image.c
new file mode 100644
index 00000000000..5cbef864462
--- /dev/null
+++ b/x11/xcb-util-image/patches/patch-image_xcb__image.c
@@ -0,0 +1,26 @@
+$NetBSD: patch-image_xcb__image.c,v 1.1 2012/08/18 08:04:25 marino Exp $
+
+gcc44 complains "control reaches end of non-void function" on DragonFly
+Apparently gcc45+ recognizes the assert, but for those compilers that don't,
+putting a dummy return value won't hurt anything.
+
+--- image/xcb_image.c.orig 2011-06-30 08:05:22.000000000 +0000
++++ image/xcb_image.c
+@@ -187,6 +187,8 @@ xcb_image_create_native (xcb_connection_
+ assert(0);
+ }
+ assert(0);
++/* gcc44 complains "control reaches end of non-void function", fix below */
++ return (-1);
+ }
+
+
+@@ -750,6 +752,8 @@ xcb_image_get_pixel (xcb_image_t *image,
+ return pixel;
+ default:
+ assert(0);
++/* gcc44 complains "control reaches end of non-void function", fix below */
++ return (-1);
+ }
+ }
+