diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-03-15 07:10:12 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-20 22:57:55 +0000 |
commit | fa65ce8bc0fb6559fcee73b0d899268ee7e6f89b (patch) | |
tree | 18868ea9935d76a9ec06315a818ed1104ec9f209 /meta/recipes-graphics/xorg-lib/xcb-util-image | |
parent | fb6f63cc814c2ef51e93235fcde5c4ac61b5823d (diff) | |
download | openembedded-core-fa65ce8bc0fb6559fcee73b0d899268ee7e6f89b.tar.gz |
xcb-util-image: Fix build with clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-graphics/xorg-lib/xcb-util-image')
-rw-r--r-- | meta/recipes-graphics/xorg-lib/xcb-util-image/clang.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-lib/xcb-util-image/clang.patch b/meta/recipes-graphics/xorg-lib/xcb-util-image/clang.patch new file mode 100644 index 0000000000..11e90940a1 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/xcb-util-image/clang.patch @@ -0,0 +1,24 @@ +Make clang happy since it squashes the control warning, ideally it will never reach that return value due to assert +but there is a chance when NDEBUG is defined + +| In file included from ../../xcb-util-image-0.4.0/image/xcb_image.c:37: +| ../../xcb-util-image-0.4.0/image/xcb_bitops.h:210:1: error: control may reach end of non-void function [-Werror,-Wreturn-type] +| } +| ^ +| 1 error generated. + +Signed-off-by: Khem Raj <raj.khem@gmail.com> +Upstream-Status: Pending + +Index: xcb-util-image-0.4.0/image/xcb_bitops.h +=================================================================== +--- xcb-util-image-0.4.0.orig/image/xcb_bitops.h ++++ xcb-util-image-0.4.0/image/xcb_bitops.h +@@ -207,6 +207,7 @@ xcb_host_byte_order(void) { + return XCB_IMAGE_ORDER_LSB_FIRST; + } + assert(0); ++ return -1; + } + + #endif /* __XCB_BITOPS_H__ */ |