diff mbox series

[1/2] cmpi-bindings: ignore incompatible-pointer-types errors for now.

Message ID 20240605063946.83219-1-leimaohui@fujitsu.com
State New
Headers show
Series [1/2] cmpi-bindings: ignore incompatible-pointer-types errors for now. | expand

Commit Message

Maohui Lei (Fujitsu) June 5, 2024, 6:39 a.m. UTC
From: Lei Maohui <leimaohui@fujitsu.com>

GCC 14 implicitly turns a warning into a compiler error:

| /build-ubinux-daily/tmp/work/aarch64-ubinux-linux/cmpi-bindings/1.0.4/git/swig/python/../../src/target_python.c:168:21: error: passing argument 1 of 'Py_SetProgramName' from incompatible pointer type [-Wincompatible-pointer-types]
|   168 |   Py_SetProgramName("cmpi_swig");
|       |                     ^~~~~~~~~~~
|       |                     |
|       |                     char *

Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
---
 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb b/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb
index 781dc83da9..d062e46bb9 100644
--- a/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb
+++ b/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb
@@ -27,7 +27,7 @@  EXTRA_OECMAKE = "-DLIB='${baselib}' \
 # With Ninja it fails with:
 # ninja: error: build.ninja:282: bad $-escape (literal $ must be written as $$)
 OECMAKE_GENERATOR = "Unix Makefiles"
-
+CFLAGS += "-Wno-error=incompatible-pointer-types"
 FILES:${PN} =+"${libdir}/cmpi/libpy3CmpiProvider.so ${PYTHON_SITEPACKAGES_DIR}/*"
 FILES:${PN}-dbg =+ "${libdir}/cmpi/.debug/libpyCmpiProvider.so"