From 72aace12a499db8d1340c8705b177e6f191d853d Mon Sep 17 00:00:00 2001 From: Changqing Li Date: Thu, 11 Apr 2019 16:20:46 +0800 Subject: cogl: fix compile error caused by -Werror=maybe-uninitialized When enable DEBUG_BUILD, cogl compile failed with error: | ../../cogl-1.22.2/cogl/driver/gl/gles/cogl-driver-gles.c:217:17: error: 'gltype' may be used uninitialized in this function [-Werror=maybe-uninitialized] | *out_gltype = gltype; | ~~~~~~~~~~~~^~~~~~~~ | ../../cogl-1.22.2/cogl/driver/gl/gles/cogl-driver-gles.c:213:22: error: 'glintformat' may be used uninitialized in this function [-Werror=maybe-uninitialized] | *out_glintformat = glintformat; | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ Source: https://gitlab.gnome.org/GNOME/cogl/blob/master/cogl/driver/gl/gles/cogl-driver-gles.c it can handle correctly, so fix with -Wnoerror Signed-off-by: Changqing Li Signed-off-by: Richard Purdie --- meta/recipes-graphics/cogl/cogl-1.0.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-graphics/cogl/cogl-1.0.inc b/meta/recipes-graphics/cogl/cogl-1.0.inc index 7a79aa789a..3e392fa5ec 100644 --- a/meta/recipes-graphics/cogl/cogl-1.0.inc +++ b/meta/recipes-graphics/cogl/cogl-1.0.inc @@ -31,6 +31,7 @@ EXTRA_OECONF += "--enable-examples-install \ --disable-gles1 \ --disable-cairo \ " +DEBUG_OPTIMIZATION_append = " -Wno-error=maybe-uninitialized" # OpenGL/GLX PACKAGECONFIG[glx] = "--enable-gl --enable-glx,--disable-gl --disable-glx,${EDEPENDS_GL} ${EDEPENDS_X11},${ERDEPENDS_GL}" -- cgit 1.2.3-korg