xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-graphics/xorg-lib/xcb-util-image/clang.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunMake clang happy since it squashes the control warning, ideally it will never reach that return value due to assert
2*4882a593Smuzhiyunbut there is a chance when NDEBUG is defined
3*4882a593Smuzhiyun
4*4882a593Smuzhiyun| In file included from ../../xcb-util-image-0.4.0/image/xcb_image.c:37:
5*4882a593Smuzhiyun| ../../xcb-util-image-0.4.0/image/xcb_bitops.h:210:1: error: control may reach end of non-void function [-Werror,-Wreturn-type]
6*4882a593Smuzhiyun| }
7*4882a593Smuzhiyun| ^
8*4882a593Smuzhiyun| 1 error generated.
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunSigned-off-by: Khem Raj <raj.khem@gmail.com>
11*4882a593SmuzhiyunUpstream-Status: Pending
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunIndex: xcb-util-image-0.4.0/image/xcb_bitops.h
14*4882a593Smuzhiyun===================================================================
15*4882a593Smuzhiyun--- xcb-util-image-0.4.0.orig/image/xcb_bitops.h
16*4882a593Smuzhiyun+++ xcb-util-image-0.4.0/image/xcb_bitops.h
17*4882a593Smuzhiyun@@ -207,6 +207,7 @@ xcb_host_byte_order(void) {
18*4882a593Smuzhiyun       return XCB_IMAGE_ORDER_LSB_FIRST;
19*4882a593Smuzhiyun   }
20*4882a593Smuzhiyun   assert(0);
21*4882a593Smuzhiyun+  return -1;
22*4882a593Smuzhiyun }
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun #endif /* __XCB_BITOPS_H__ */
25