[oe] [meta-oe][PATCH] libwebsockets: Fix the build with -Os

Khem Raj raj.khem at gmail.com
Thu Aug 29 18:46:55 UTC 2019


On Thu, Aug 29, 2019 at 3:39 AM Adrian Bunk <bunk at stusta.de> wrote:
>
> lib/event-libs/libuv/libuv.c: In function 'elops_destroy_context1_uv':
> lib/event-libs/libuv/libuv.c:519:7: error: 'm' may be used uninitialized in this function [-Werror=maybe-uninitialized]
>     if (m)
>        ^
>
> Signed-off-by: Adrian Bunk <bunk at stusta.de>
> ---
>  .../recipes-connectivity/libwebsockets/libwebsockets_3.1.0.bb   | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_3.1.0.bb b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_3.1.0.bb
> index 50620d99e..fcabeb902 100644
> --- a/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_3.1.0.bb
> +++ b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_3.1.0.bb
> @@ -28,3 +28,5 @@ EXTRA_OECMAKE += " \
>  PACKAGES =+ "${PN}-testapps"
>
>  FILES_${PN}-testapps += "${datadir}/libwebsockets-test-server/*"
> +
> +CFLAGS_append = " -Wno-error"

is it possible to fix the underlying problem? since Os is not default
it definitely could be a bug in upstream but
by disabling warnings for all kind of builds we are  painting with broad brush

> --
> 2.17.1
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


More information about the Openembedded-devel mailing list